I'm not fully certain on the intended result, but try this:
If System Sprite.8Direction.VectorX < 0, then Set Flipped
If System Sprite.8Direction.VectorX >=0, then Set Not Flipped
Be sure to remove your flips on the keyboard presses.
It'll check the direction the sprite is moving, left or right, and flip based on that.