Use the arrow keys or a and d to move left and right. Avoid spikes and stuff. Touch the cube to get to the next level.
Credit to my 4 year old brother who let me take his picture for this game.