First, please look over this page for how to post code nicely on the forums: Using code tags properly
Next, is this a 2D game?
Any errors? Is ‘Vertical’ defined as a Key?
If it’s 2D, you may want transform.right
Otherwise, you may want Input.GetAxis(“Vertical”) > 0
unless you want going backwards, too, in which case you should probably get the value returned from Input.GetAxis and use that multiplied by forward and speed.
I hope that helps