I have a platform-type game that uses the 4 arrow keys and the spacebar to control player movement. This works fine in SWF, but when I build in HTML5, these keys cause the browser window to scroll around making the game impossible to play (it keeps moving the game window up and down!). Is there a way to keep the focus just on the game canvas in HTML5 (as it does in SWF games)? I embed the html file into a web page on my site. I can't send the user to the actual html5 canvas page for security reasons.
I was going to simply reconfigure all my control keys to WASD and RETURN instead of the arrows and the spacebar, but I just wanted to know if there was an easier solution that didn'T require me changing the program (this would mean new docs, new iinstruction panels, etc...)
Thank you very much for any help or comment,