Arrow keys or WASD to move. Avoid the spikes. This is just a redesign of @G-rantspants original project, My First Platformer.
@G-rantspants. Also check out his project because he followed a tutorial and credited another person but I'm too lazy to check.