       )
       enableTimeout = false if replay
       this.enterPendingState(partialMatches, enableTimeout)
-    else if not dispatchedExactMatch? and not hasPartialMatches and @pendingPartialMatches?
+    else if not dispatchedExactMatch? and not hasPartialMatches and this.pendingPartialMatches?
       # There are partial matches from a previous event, but none from this
       # event. This means the current event has removed any hope that the queued
       # key events will ever match any binding. So we will clear the state and

  #   * `which`  A {Number} indicating `which` value of the event. See
  #     the docs for KeyboardEvent for more information.
  #   * `target` The target element of the event.
  KeymapManager.buildKeydownEvent = (key, options) -> 
    keydownEvent(key, options)

  KeymapManager.buildKeyupEvent = (key, options) -> 
    keyupEvent(key, options)

  ###

      currentTarget = target
      eventHandled = false
      while not eventHandled and currentTarget? and currentTarget isnt document
        exactMatches = this.findExactMatches(exactMatchCandidates, currentTarget)
        for exactMatchCandidate in exactMatches
          if exactMatchCandidate.command is 'native!'
            shouldUsePartialMatches = false
