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.
Merge pull request #2100 from dreamlayers/prevent_hotkeys

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