Move a rigidbody verticaly

Hey,

i have rigidbody player and it moves using Addforce Horizontally but now i want it to move Vertically

i use this code to move it horizontally but i couldn’t make it work for vertical movement

var maxVelocityChange = 10.0;

function FixedUpdate(){

var targetVelocity = new Vector3(Input.GetAxis("Horizontal"), 0,0);
    						targetVelocity = transform.TransformDirection(targetVelocity);
    						targetVelocity *= speed;
    				 
    						var velocity = rigidbody.velocity;
    						var velocityChange = (targetVelocity - velocity);
    						velocityChange.x = Mathf.Clamp(velocityChange.x, -maxVelocityChange, maxVelocityChange);
    						velocityChange.z = 0;
    						velocityChange.y = 0;
						rigidbody.AddForce(velocityChange, ForceMode.VelocityChange);

}

just put the incoming vertical axis data into the y value of your vector

                     var targetVelocity = new Vector3(0, Input.GetAxis("Vertical"),0);
                     var velocity = rigidbody.velocity;
                     var velocityChange = (targetVelocity - velocity);
                     velocityChange.x = 0;                      
                     velocityChange.z = 0;
                     velocityChange.y = Mathf.Clamp(velocityChange.y, -maxVelocityChange, maxVelocityChange);
;