Funny, I ran into this issue just this week, as I was putting the finishing touches on a port of my NES emulator to the browser. I worked around it by adding a click event to the body of the whole page. Since the user needs to click on the the page once to play anyway (otherwise they get no button input), I can simply…