code: function (e) {
            if (!this.shown) return
  
            switch(e.keyCode) {
              case 9: // tab
              case 13: // enter
              case 27: // escape
                if (!this.$menu.find('.active').length) return
                e.preventDefault()
                break
  
              case 38: // up arrow
                e.preventDefault()
                this.prev()
                break
  
              case 40: // down arrow
                e.preventDefault()
                this.next()
                break
            }
  
            e.stopPropagation()
          }
docs: /*
  if autoSelect = false and nothing matched we need extra press onEnter that is not convinient.
  This patch fixes it.