SPACE to start up arrow key to jump. Jump over the flying rocks X to reset.
I took inspiration from @zeldacode https://scratch.mit.edu/projects/485805382/