           }
 
   initKeyboardEventHandler: ->
-    $(document).unbind 'keydown'
+    $(document).off 'keydown'
     $(document).keydown (e) ->
       returnStatement = true
       returnStatement = false if _this.knownKeys.indexOf(e.keyCode) >= 0

  initMouseEventHandler: ->
    $('.interfaces-staging .token').mousedown (e) ->
      $clickedToken = $(this)
      # # handle the click on a already known token
      # _this.selectChunkWithToken($clickedToken) if _this.tokenIsChunk($clickedToken)
      # # or add a yet unknown token
      # _this.createChunkFromToken($clickedToken) unless _this.tokenIsChunk($clickedToken)

      clickedTokenIndex = _this.selectChunkWithToken($clickedToken)
      _this.currentDraggingStartedAtTokenIndex = clickedTokenIndex

      $('.token', $clickedToken.parent()).hover ->
        return if _this.currentDraggingStartedAtTokenIndex < 0
        hoveredTokenIndex = _this.selectChunkWithToken($(this))
        _this.createChunkWithTokens(clickedTokenIndex, hoveredTokenIndex)

    $('body').mouseup (e) ->
      console.log 'mouse released'
      $(document).unbind 'mousedown'
      $(document).unbind 'hover'
      _this.currentDraggingStartedAtTokenIndex = -1

  actionFromKeyEvent: ->
    keyIsPressed = (keyId) ->

      _this.actionFromKeyEvent()
      return returnStatement

    $(document).off 'keyup'
    $(document).keyup (e) ->
      keyMapIndex = _this.keyMap.indexOf(e.keyCode)
      _this.keyMap.splice(keyMapIndex)
