dont know how to disable Use controller rotation yaw when idle

Hi there, i am new to unreal engine and i have made a third person game, where i have my character and its animations set for walking, running forwards, backwards etc. My problem is that i want the character to use controller rotation yaw when its moving, but it also uses it when im just idle, standing and looking around, the character turns in place and it looks weird, i want to disable that and use the rotation yaw only when its moving.