I just fixed it up a little. See my comments for explanations. Arrow keys to move. Don't touch spikes.
All credit to the original, and this isn't meant to be any remix of any kind. I just wanted to show someone how to better their code.