If you reload the webpage does it magically start to work? That issue happened to me once when I first built the game for web but it disappeared after reloading, I'll look into a more permanent fix!
Edit: actually I believe the issue is with keyboard keys not working on web builds, if you use a mouse input instead it should work fine. Although you have to keep the mouse still while selecting the input, Unity input on web is a touch strange lol