           keymapManager.onDidReloadKeymap -> reloaded = true
 
           afterWaiting = ->
-            assert(not reloaded)
+            assert(!reloaded)
 
             # Can start watching again after cancelling
             keymapManager.loadKeymap(keymapFilePath, watch: true)

      [events, elementA] = []

      beforeEach ->
        elementA = appendContent($$(->
          @div { 'class': 'a' }, ->
            @input
              'class': 'input'
              type: 'text'
        ))
        inputElement = document.querySelector('.input')
        inputElement.focus()



          event = buildKeydownEvent(key: 'y', ctrlKey: true, target: elementB)
          keymapManager.handleKeyboardEvent(event)
          assert(!event.defaultPrevented)

          assert.equal(events.length, 3)
          assert.equal(events[0].type, 'y-command')
