   else
     atom.project = new Project(path.join(@specDirectory, 'fixtures'))
   window.project = atom.project
+  atom.keymap.keyBindings = keyBindingsToRestore
 
   window.resetTimeouts()
   atom.packages.packageStates = {}

    else
      resolvePackagePath(packageName)
  resolvePackagePath = _.bind(spy.originalValue, atom.packages)

  # used to reset keymap after each spec
  keyBindingsToRestore = _.clone(atom.keymap.allBindings())

  # prevent specs from modifying Atom's menus
  spyOn(atom.menu, 'sendToBrowserProcess')

fixturePackagesPath = path.resolve(__dirname, './fixtures/packages')
atom.packages.packageDirPaths.unshift(fixturePackagesPath)
atom.keymap.loadBundledKeymaps()
keyBindingsToRestore = _.clone(atom.keymap.allBindings())

$(window).on 'core:close', -> window.close()
$(window).on 'unload', ->
