I noticed there is a recurring bug for many HTML games (including mine). Sometimes the keyboard keys do not work. I believe what triggers this is when the player clicks away from the game to maybe check out the instructions or something. Clicking on the game does not help.
One quick solution I found is to refresh the page, though it would be annoying if this happens halfway through the game.
Another solution that the developers could do is increase the viewport dimensions on itch (not in GMS) so there is this excess border the player can click on to get back in the game (I don't know why this works).
I checked out my other HTML games I made in GMS 2 and this bug didn't occur so I'm guessing it's a GMS 2.3 bug maybe.