I used the Input System for this project. Unity says it works for WebGL on their website but if you search the forums you can find developers admitting it doesn't work reliably. Sorry for the disappointment. I'm going to rewire the input with the old manager.