Character Movement Rotation issue

Hello all,

I am working on rotating a character using AD mouse key. when I press A, it look at right and go right, when I press D, it look at left and go left.
The thing is that once I rotate either right or left, movement direction didn’t match again like looking at left and go right.
If you have any idea to mapping and rotating character, it would be great.