You're not capturing keyboard input correctly, so browser is exeuting the letters as shortcuts/searches in the page. For web play, you need to find and hook the relevant API calls so that input is correctly passed-through to your game. (can't play at all on web)