Left and right arrows spin you around and the up arrow accelerates you forward. Press space to reset in case you get stuck on the edges. You could remix this for space games or just make your own. If you do use it, you should play around with the values to see what suits you.
You may remix or backpack the code in here. Also I made this a long time ago, so sorry if it is very simple.