       key = key.toUpperCase()
     else
       key = key.toLowerCase()
+
     if event.getModifierState('AltGraph') or (process.platform is 'darwin' and altKey)
       # All macOS layouts have an alt-modified character variant for every
       # single key. Therefore, if we always favored the alt variant, it would

  usKeymap ?= require('./us-keymap')
  usKeymap[code]

exports.normalizeKeystrokes = (keystrokes) ->
  normalizedKeystrokes = []
  for keystroke in keystrokes.split(WHITESPACE_REGEX)

          key = nonAltModifiedKey
          altKey = event.getModifierState('AltGraph')

  # TODO: Remove the com.apple.keylayout.DVORAK-QWERTYCMD
  # case when we are using an Electron version based on Chromium M62
  # That issue was fixed in https://bugs.chromium.org/p/chromium/issues/detail?id=747358
  # Use US equivalent character for non-latin characters in keystrokes with modifiers
  # or when using the dvorak-qwertycmd layout and holding down the command key.
  if (key.length is 1 and not isLatinKeymap(KeyboardLayout.getCurrentKeymap())) or
