 
       @keepFocused()
       @escapeClose()
+
+      document.addEventListener "keydown", @onKeyDown, true
 
       App.on "load.commands sync.commands",  =>
         return unless @$input

    rawTemplate: template

    events:
      "keydown": "onKeyDown"
      "click .settings": "openSettings"

    initialize: ->

    openSettings: ->
      Extension.trigger "open.settings"

    onKeyDown: (e) =>
      return unless App.open
      e.stopPropagation()
      preventDefault = true
      unless App.loading
        switch e.which
