2 player platform animation problems

alright, i got another problem with this platformer. i’ve been trying to figure out the 2 player thing. all i did was copy the player 1 code and change variables. it works great but when both players are walking, then one stops holding the key down - his animation still plays. check out what i got so far. use arrows and WASD to move characters.

http://www.cb-art.com/duel2ndcode.fla