Added browser/OS detection to game to fix keyboard
scrolling on the Mac being the reverse of what it
is on Linux/Windows.