+ On key pressed UP
=> set player animation to "meleeattack" (from beginning)
=> set player angle to 270
+ On key pressed RIGHT
=> set player animation to "meleeattack" (from beginning)
=> set player angle to 0
+ On key pressed DOWN
=> set player animation to "meleeattack" (from beginning)
=> set player angle to 90
+ On key pressed LEFT
=> set player animation to "meleeattack" (from beginning)
=> set player angle to 180
Set its angle to 0 on pressing the right arrow key, and 180 when pressing the left arrow key....and expand.
Since I suppose "original legend of zelda" is topview.
If not, don't change the angle, but make 4 animation corresponding to the 4 direction, and set the correct animations to the correct key pressed.