The game already does call preventDefault for events it handles. If it doesn't know what to do with the key, it bubbles the event up, which is the correct behavior. This is not a bug in my game, it's the option you've set in your browser.