 
   # Return the Vimium key representation for this keyboard event. Return a falsy value (the empty string or
   # undefined) when no Vimium representation is appropriate.
-  getKeyCharString: (event, allKeydownEvents = false) ->
+  getKeyCharString: (event) ->
     switch event.type
       when "keypress"
         # Ignore modifier keys by themselves.

    # TODO(smblott) Change this to use event.key.
    (event) ->
      event.keyCode == @keyCodes.ESC || do =>
        keyChar = @getKeyCharString event, true
        keyChar = mapKeyRegistry[keyChar] ? keyChar
        # <c-[> is mapped to Escape in Vim by default.
        keyChar == "<c-[>"


          String.fromCharCode event.charCode

      when "keydown"
        if keyChar = @getKeyChar event
          modifiers = []

          keyChar = keyChar.toUpperCase() if event.shiftKey and keyChar.length == 1
          # These must be in alphabetical order (to match the sorted modifier order in Commands.normalizeKey).
          modifiers.push "a" if event.altKey
          modifiers.push "c" if event.ctrlKey
          modifiers.push "m" if event.metaKey

          keyChar = [modifiers..., keyChar].join "-"
          keyChar = "<#{keyChar}>" if 1 < keyChar.length
          keyChar = mapKeyRegistry[keyChar] ? keyChar
          keyChar

KeyboardUtils.init()

