       @handleTab(anchor_node)
       return false
 
-    if e.which == ENTER
+    if e.which is 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 == SPACEBAR)
      utils.log("SPACEBAR")
      if (parent.hasClass("graf--p"))
        @handleSmartList(parent, e)

          return this.handleListBackspace(parent, e);

      #select an image if backspacing into it from a paragraph
      if($(anchor_node).hasClass("graf--p") && @isFirstChar() )
        if($(anchor_node).prev().hasClass("graf--figure") && @getSelectedText().length == 0)
          e.preventDefault();
          $(anchor_node).prev().find("img").click();
