Player input polish.

. When both directions are pressed, the last key press determines the
direction.
. Correct behavior when a direction key is released if the other
direction key is down.
. Double-jumping takes in to account the input direction.