I've run into the same problem, I guess it is a Firefox issue.
I mainly use firefox for creating the game so the controls ended up being reversed in chrome.
Develop games in your browser. Powerful, performant & highly capable.