Replace input code with manual flags to detect repeats which fixes the jump-key-overrides-movement bug and makes movement much smoother.