Help with flipping!

Hey, i need help with this.
my guy is walkin right, right?, and i want him when hes done to finish in a standing mode facing write, whats happening is its walkin right, but it faces left, i no the problem, but i need a code basically saying if in this position flip (frame label) ill post the code
if you do not understand just say so

onClipEvent(load){
speed = 5;
}

onClipEvent(enterframe){
if (Key.isDown(Key.LEFT)){
this.gotoAndStop(21)
this._x -= speed;
}
if (Key.isDown(Key.RIGHT)){
this.gotoAndStop(61)
this._x += speed;
}
if (Key.isDown(Key.CONTROL)){
this.gotoAndStop(41)
}
}

Remember all i need is a flipping code, saying if in walking right, lip the stand, to stand right, Thanks