Right, but if you are holding a button down to move? shouldn't you face that way?
OK, let me ask a different way. You are using the word "automatically", but I still don't know whaf is making you turn around.
Are you facing an enemy? Are you looking at the mouse? I don't know what automatic thing you want to do. At this moment I only see that you want to face a direction when you try to move, which is what you're doing already, unless you are using default controls on your player by accident and the code doesn't work. Maybe check and see if default controls are turned on in the behavior?