why not just set your animation on key press ?
if key down pressed set animation down
if key right pressed set animation right
etc
?
I tried that, but if I'm pressing up, and then press right withou letting go up, the player would move up, but the animation would be facing right, and it looks worse than my current situation