how would I make a pawn rotate 90 degrees with an input?

really basic but I basically just want to rotate the pawn 90 degrees with an action input similar to how Inscryption did it, but I can’t figure out how to make it move smoothly instead of snapping.