Always preventDefault() on keydown if keypress is not needed.

Some browser shortcut keys activate if event.preventDefault()
is not called for the keydown event. This will prevent all such
hotkeys when keypress events aren't needed.