Arrow keys to move, avoid spikes, jump into the portal to go to the next level. If you press J, you can control how high you jump. (Lava does not hurt you)
Thanks to Sigma61 for most of the code, I just changed a couple things. :)