left, right arrowkeys are to move left and right
feel free to use this code elsewhere, and comment if you think i should turn this into a game