Only Play Animation When Button ("space") is pressed and Repeat!!

Hi,
I have succeeded in Playing Animation on Button Click but it plays only once. I have unchecked “Loop Time” from Inspector as well but If I check it back after pressing space it keeps on playing.

I want to Trigger Animation when space is pressed and it should loop once and my player will move in the game and when again I press space it should play the animation, its basically a Weapon Animation

Here’s my code:

    void Update () 
    {
	          if(Input.GetKeyDown("space"))
	          {
	                  anim.Play("WeaponAnimation");
	          }
    }

replace inputgetkeydown with
Input.GetKey