Hey there, I suggest that you check which key was pressed to trigger the movement to set the player animation;
For the party members to follow, the best way is to store the player coordinates in an array each time they move, and position the party members based on the array content