Prevent writing key combinations to console

Some browers fire onkeypress event for key combinations like Cmd/Ctrl+R.
This prevents the keys to be written to the console for those browsers.
Closes #56.