The goal is to have the most time you can playing without hitting the meteor. Use the up to go up, and use the down key to go down. You cannot go into the middle. You can change your direction while moving.
I thought of this whole game myself. I thought of it when I was going to do a school coding game, but then, I remembered I have a scratch account. It took me a while to code this and to think of this, but I finally did.