Need help please!

I have a button on frame 1, and that button has a code that says if i hit key-left, it gonna jump to frame, how can i do so the go back to frame 1 whem i stop pressing the key?

I’ve test this code:

on (keyDown “<Left>”) {
gotoAndPlay(9);
}

on (keyUp “<Left>”) {
gotoAndPlay(1);
}

But then this message came up:

Symbol=player_mc, Layer=Layer 9, Frame=1: Line 4: Invalid mouse event specified.
on (keyUp “<Left>”) {

Symbol=player_mc, Layer=Layer 9, Frame=1: Line 5: Statement must appear within on handler
gotoAndPlay(1);

Symbol=player_mc, Layer=Layer 9, Frame=1: Line 6: Unexpected ‘}’ encountered
}


What is wrong? =(
<!–Signature–><!–E-Signature–><!-- THE POST -->