90 Degree Smooth Rotate On Button Press

Hello guys. I’m making a simple grid system. When i press the A or D button my character turns left or right 90 degree. (Y Axis) Everytime i press the key it adds 90 to my Y axis. So, 0-90-180-270-0. But this happens instant and it hurts your eyes after sometime. Is there a way to rotate my object smoothly 90 degree everytime i press the key?

Let’s say my object’s Y axis is = 90
I pressed D to turn right, so it needs to be = 180
And it will rotate my object from 90 to 180 in 5 seconds.
Like this maybe :smiley:

Thanks for helping!