       player.spriteState.viewDirection = 1
 
     if actions['interact']
-      player.onAction()
-
-      # control dialog
-      if mediator.dialogManager.isDialog()
-        mediator.dialogManager.chooseCurrentSelection()
+      @handleAction()
 
     if actions['cancel']
       placeholder = true

    super
    new Std()

    @canvas = document.getElementById 'game-canvas'
    @ctx = @canvas.getContext '2d'


    else
      player.physBody.SetLinearVelocity new Vec2 0, 0
      player.spriteState.moving = false


  _handleAction: =>
    # only do smth if there is no dialog
    if mediator.dialogManager.isDialog()
      mediator.dialogManager.chooseCurrentSelection()
    else
      player = mediator.getActiveLevel().player
      player.onAction()


  draw: =>
