Unfortunately my debugging skills on this one are pretty weak, I can only offer an "it works on my machine" with an Xbox controller. Are you using a particularly locked down browser? Maybe it is not allowing the input?
Chrome. I apparently do have an update to make but I also don't think I've ever played an HTML 5 game straight from itch io with a controller yet. Going to see if I can get it to work elsewhere.