Fix altgr firefox

Correctly detect Linux OS on Firefox.

The OS detection controls which modifier key is treated as modifying character input (AltGr on Windows, Ctrl+Alt on Windows, and Alt (aka. Option) on Mac.