       , 2
 
     #delete key
-    if (e.which == BACKSPACE)
+    if (e.which is BACKSPACE)
       eventHandled = false;
       @tooltip_view.hide()
       utils.log("removing from down")

      @handleTab(anchor_node)
      return false

    if e.which == ENTER

      #removes previous selected nodes
      $(@el).find(".is-selected").removeClass("is-selected")

        return false if @isFirstChar() && !_.isEmpty( $(anchor_node).text().trim() )

    #spacebar
    if (e.which is SPACEBAR)
      utils.log("SPACEBAR")
      if (parent.hasClass("graf--p"))
        @handleSmartList(parent, e)
