Wait until the animation's finished, then use the arrow keys to move. Don't touch spikes.
Thanks for @LennyReeves for the coding!