How to Smoothly Rotate a Actor

Thank you!

This works quite well in principle, but the actor should continue rotating in a certain direction as long as the mouse is moving or the key is held down. It should only gradually slow down once the input is released.