have you considered using a timeline?, you could use one to drive a float value witch sets the cubes height making your cube rise by playing the timeline on button pressed and then play it in reverse it when you release the button to make the cube lower to its original position, although that’s just an idea:).