Help for a key controlled "Ghost Ship"

So I have a ghost ship which you control with A(Left),D(Right), and W(Up). I made the character to flip when going left and back when going right but for some reason the ship goes right instead of going left when I press A. I took off the flips and it works fine, but I want the ship to look like it’s turning by making it flip. What should I do?

Nevermind, problem fixed