Click the green flag twice. Use the arrow keys to move the square, avoid the spikes.
Just a proof of concept. this will be used in my OS, Lithium OS. It was simple to do, I borrowed the text engine.