Whats wrong with my script

onClipEvent (keyDown) {
    if (Key.isDown(65)) {
        trace("You pressed 'A' ")
        gotoAndPlay(2);
    }}

im trying to make a mc go onto another frame, when key A is hit. helpzz pwease!!! :hobbes: