Ok, so I would like the following:
If the player is to the right or to the left or on the box and press the spacebar, then the box will depend on the player. The box is then exactly follow the player's movements. Without delay. Only when the player again pressing the space bar, the box is no longer the player.
Sorry for my bad english.