I'm thinking about making a website that would end up being open in the background (or on a second screen) while someone is playing a video game. How could I pass a bounded key input to the website even though the browser is not currently focused? I'd like to avoid java applets but could do it if its the only way. Browser plugins might work too but the idea is to avoid any user installs and make it as simple as possible. Any thoughts?