Get past the traps using the arrow keys. The green monster will kill you if you touch it and the spikes will do that too. Get the key and put it in the lock and a wall will disappear letting you to the gem. Also, you have to go through the brown thing (a ball goes out know and then) to get to the blue door (it ends the game).
Super Scratch Programming Adventure! (Covers Version 2): Learn to Program by Making Cool Games