         @exitZenMode()
 
     $(document).on 'keydown', (e) =>
-      console.log("esc")
-      if e.keyCode is ZenMode.ESC
+      if e.keyCode is $.ui.keyCode.ESCAPE
         @exitZenMode()
 
     $(window).on 'hashchange', @updateZenModeFromLocationHash

    if checkbox
      @udpateActiveZenArea(checkbox)
    else
      @exitZenMode()      

    @active_zen_area = @active_checkbox.parent().find('textarea')
    @active_zen_area.focus()
    window.location.hash = ZenMode.fullscreen_prefix + @active_checkbox.prop('id')

  exitZenMode: =>
    if @active_zen_area isnt null
      Mousetrap.unpause()
