Character rotates towards move direction problem

This would work if it wouldn’t permanently kill rotation no matter what method was used. I only want to stop move direction changes from inflicting a new rotation on the character.