rotation transition

Hi (noob :warning:)

Ok here it goes, simple and straight:

object “x” has an initial orientation. Now when I press a key, let’s say, “W” I want it to rotate 15 degrees on z axis.

Now the thing is, it kinda “jumps” to that specified angle but I need it to have a smooth and gradual rotation.

I used the “timeline” approach, but I get weird rotations when multiple directions are involved.

Isn’t there any other method to get a smooth transition not just in rotation but also in any kind of transform (e.g., position, rotation, scale)?

Any suggestion is appreciated.

Can you show the code?