The animation plays continuously?

This animation keeps playing even if I’m not pressing arrow up or arrow down why?

var speed = 10.0;

function Update () {
	var x = Input.GetAxis("Horizontal") * Time.deltaTime * speed;
	var z = Input.GetAxis("Vertical") * Time.deltaTime * speed;
	transform.Translate(x, 0, z);
	
if(Input.GetAxis("Vertical") > 0.2);
	animation.CrossFade ("walk");
				
}

Have you checked the wrapMode on the animation?

Never mind I fixed it