How do I snap layer rotation?

I am using the side scrolling example as a base and I noticed that the player model rotates before facing the opposite direction. I would just like to know how to make it so that the player points in the direction when I give input. (Ex: “w” would snap it to the left, and “d” would snap it to the right)