Consistently prevent default action of all handled hotkeys

This avoids conflicts with possible browser bindings (e.g. if something is already bound to the J/K keys).

Split off from #884.