Rotating Character in 2D space

Someone knows how to rotate my character in 2D space. I have movement already but it’s not rotating when I press A and D only moving left and right. I’m not using blueprints want to do with code. If someone knows please help