How to rotate character so that he is in that position when animation is on

So, I am making 3rd person game and i want to rotate my character for 90° in left or right when i press A or D, and then walking animation should be running in that direction (while i hold A or D) , i have tried rotating character and everything but when i press A my walking animation is going in forward direction and not left, and when i am debuging it shows to me that my Y component of rotation is changing(0,7 and -0,7 for example(-0.7 for right)) and when i release A my character’s rotation is for 90°in left, can someone please help me fix this?
Thank you.(and sorry for m english it is really bad i know)

Anyone? I really dont know how to fix this and i need it to continue