Input handling

Changed input handling for left and right movement. Not quite sure if
this is better, but it solves a few inconsistencies. Maybe I should use
a mix of boolean and int instead.