Actionscript question

Hello Forumers,

Ive got one little question,

how can i achieve something like this:

Ive got one Movie with 2 scenes

in the first scene there is a animation and a button to go to scene 2

My goal is this:

i dont want to press the button to go to scene 2
i want that the movie switches on keypress to scene 2 (main)

and if i do not do anything for about 30 seconds,it has to go back to scene 1 (animation)

:jail: would be great if somone could give me a hint