How do i make a character accelerate and play an animation when the click left-shift

I wanted to make a script that makes my character move faster when they click left-shift. i would also like it to play a certain animation. a few things to take into thought tho i dont want it to play the whole animation just until when they stop pressing left-shift. i already have the animation with the character. it would be nice if there was a variable for it so i can just drag the animation onto the varaible

Search documentation - http://unity3d.com/support/documentation/ScriptReference/Animation.html Detect left mouse button - `Input.GetKey("mouse 0")` will detect a left-mouse buttom click and replace `mouse 0` with `left shift` for left shift.

So full code:

function Update() {
   if (Input.GetKey("left shift")) { 
      animation.Play("nameOfAnimation", PlayMode.StopAll);
      transform.Translate(transform.forward * (normalSpeed * 2));
   }
}

The animation should be stored in the `Animation` component of the gameObject