This is done by “flipping” the parent object that holds the sprites. Or, if its all one sprite, the sprite renderer has a flip tickbox. I don’t know if there’s an action for this, but you can achieve the effect by setting the scale of x to -1 or negative of whatever the scale value is. Alternatively, rotate the Y by 180 degrees.
To do this, use float compare on every frame and set scale once (not every frame). In one state you check if input is smaller than -0.1 then go to flipped, and in that state check if input is greater than 0.1 then go back to the other state, and flip back. This makes it so that the character also stays in that last orientation when input is 0.