Overriding Browser-Default Keys in HTML5 Games
HTML5 games embedded in web pages sometimes have key conflicts with browser-default keybinds. For example, pressing spacebar will cause users to scroll down the page in some browsers. In this post, I have listed JavaScript code that can be inserted in any HTML body to disable browser-binded keys that are often used in games. Read more [...]