Hi,
ok, one way is to use the "Set Rotation" action, and have the values that you inject to be dependant on the input down and up state.
I have made a small working example showing how to rotate a cube based on mouse down. When the mouse is up it goes back to 0.
I use here Lerp for smooth animation, but you may want to simply set it, in that case, simply inject directly the rotation target in the "Set Rotation"
If you have more questions, don't hesitate.
Bye,
Jean