Use the arrow keys to move and get to the right side. The red sometimes doesn't kill you but that's not because of my programming but because Scratch is glitchy.