Use the arrow keys to make "Sonic" go through the loop. You have to build up speed to get up. If you stop you'll fall down or off completely.
I'm not finishing this because I don't have the motivation. Credit to math class, it's actually pretty useful sometimes.