     mostOuterToken.$token.removeClass('selected')
     this.selectedTokenIndex = siblingIndex if this.selectedTokenIndex == mostOuterTokenListIndex
 
-  removeCurrentChunk: ->
-    mostOuterTokenListIndex = this.getMostOuterTokenIndexFromChunk(this.selectedTokenIndex, 'left')
+  removeChunkWithIndex: (tokenIndex) ->
+    mostOuterTokenListIndex = this.getMostOuterTokenIndexFromChunk(tokenIndex, 'left')
     this.removeChunkWithStartIndex(mostOuterTokenListIndex)
 
   removeChunkWithStartIndex: (mostOuterTokenListIndex) ->

  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) ->

          }

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