Changing scene and go to frame

I´m having troubles with a game i´ve made. When the game is finished the movie is in scene 3, then I want to press a button on the keyboard and the movie should go to scene 1, frame 400. How to?

I´ve tried:

[AS]on (keyPress “a”) {
gotoAndStop(“Scene 1”, 400);

but it doesn´t work, the stuff on scene 3 is still visible when I press the button, and the stuff on scene 1 just shows for a short moment. weird.

so, please help!