How do I bind an animation with a key

I have made an animation and i want it to paly when I press left alt can someone pleese give me a script to do this?

Try adding this code to a script attached to the object that contains your animation data:

`
function Update () {
    if(Input.GetButtonUp("KeyAxisNameInInputManager"))
        animation.Play("NameOfAnimation");
}
`

In the above code, KeyAxisNameInInputManager refers to Unity’s Input Manager. Read about it at Unity - Manual: Input

MachCUBED

im confused, if you have skype plz add me and help me