Use the arrow keys to move, and don't touch the blue. The red is the portal to the next level. If there is no portal, then you need to get it to appear. All of the other rules are part of the game to figure out.