Fix modifiers and command keys

works in Chrome+Safari+Firefox on Mac