GameMaker definitely limits input on HTML until player clicks into the window. This is a known "quirk" of the engine. There are ways you can fix issues that arise because of this when it comes to stopping and resuming audio depending on user clicking away using "Asynchronous-System" event somewhere in a global manager object, I can share the code I use but there are better tutorials on how to do that on the internet. Yeah, you can only work around this as there are no ways to avoid it.