Air browser and keyboard events

Ive got an air browser that loads a little “village” made in javascript. In the “village” the different stores have flash games. When a user enters the store, javascript loads the flash game using the innerHTML method. Running this way in a standard browser the games run fine, and can get the keyboard events, but when I run the system inside the air browser, keyboard events arent being passed to the flash games. Any thoughts or ideas? Reconfiguring the system to be flash only isnt an option (unfortunately). Thanks