How do you stop an animation looping?

I am creating a weapon. Everytime i test the game, the weapon just keeps hitting. I want it to only play the animation as i press a button.

Click the animation and diselect the loop thing and if you want the animation to play just with a button press thrn i recommend you the unity stealth project there is a very good example how to use the animator