Refactor jump keydown checks.