Use the arrow keys to move. You need to collect all the coins to open the next level portal. This took a really long time to code (for me). Press See Inside if you don't believe me. Level 1 and 3 are pretty hard.