Animation wont play

Hey Im trying to play a camera movement animation but nothing happens when pressing spacebar. I have checked the inputs also and there is named " Jumped " Positive button space, theres no errors so what cud be wrong ? : (

var theAnimation : AnimationClip;
 
function OnTriggerStay () {
    if (Input.GetKeyDown("Jump")) {
        animation.Play();
        }
    }

I have something like this

function Update () {
if(Input.GetKeyDown(“a”)) {
animation.Play(“Walk”);
}
if(Input.GetKeyUp(“a”)) {
animation.Stop(“Walk”);
}
}

Don’t know i it will wok for spacebar though…