Prevent default on HTML5 key events