   #   * `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)
+  @buildKeydownEvent: (key, options) -> keydownEvent(key, options)
+
+  @buildKeyupEvent: (key, options) -> keyupEvent(key, options)
 
   ###
   Section: Properties

  #
  # Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
  onDidFailToReadFile: (callback) ->
    this.emitter.on 'did-fail-to-read-file', callback

  ###
  Section: Adding and Removing Bindings

    checkIfDirectory = options?.checkIfDirectory ? true
    if checkIfDirectory and fs.isDirectorySync(bindingsPath)
      for filePath in fs.listSync(bindingsPath, ['.cson', '.json'])
        if @filePathMatchesPlatform(filePath)
          @loadKeymap(filePath, checkIfDirectory: false)
    else
      @add(bindingsPath, @readKeymap(bindingsPath, options?.suppressErrors), options?.priority)
      @watchKeymap(bindingsPath, options) if options?.watch

    undefined

