Two player fighting on keyboard

I am making a game where two people control characters on the keyboard. Player one uses numbers (with the getASCII method) and the other one uses the arrow keys and the Key class. For some reason, the first character’s motion is really choppy and whenever the arrow keys are pressed (by player two). What’s wrong?

Here’s my engine in a nutshell:
onClipEvent(keyDown){
key = Key.getASCII();
}
onClipEvent(keyUp){
key = 999;
}
//move p1 left if ‘a’ is pressed
onClipEvent(enterFrame){
if(key == 97){
playerOne.moveLeft();
}else{
playerOne.stand();
}
//move p2 left if LEFT is pressed
if(Key.isDown(Key.LEFT)){
playerTwo.moveLeft();
}else{
playerTwo.stand();
}
}