Animation stuck if i hold the trigger Button

Hi, i have an animation that starts when my bool is true which happens when i press the button V, it works like it should but if i hold in the button V it gets stuck in this animation and wont return to idle so the bool stays as true even when i release the button.

if (Input.GetKey (KeyCode.V) && !anim.GetBool ("Attack")) {
			anim.SetBool ("Attack", true);

i have an animation event that turns it back to false at the last frame.

	void StopAttack()
	{
		anim.SetBool ("Attack", false);
	}

GetKey returns true as long as the key is held down, so you’re always resetting your bool to true. You want GetKeyDown, which returns true only once until the key is released and pressed again.