The intended solution is to open the gate when the box is on the pit, then activate the button on the right, the box will float but will be stopped by the left wing of the door, then you have the open path to the key