How do i do a 'press space' button

Hi Guys!
I was wondering, im doing a south park game and I have a pre-loader, but how do i do it so when the pre-loader’s finished if you press space it goes to frame 2/next frame?

CREDIT in flash to whoever gives code