game does not crash when pressing two movement buttons at once

...and player changes direction whenever another movement key is pressed.