Problem with gotoAndPlay()

here are my codes:

if(Key.isDown(Key.LEFT)){
this.gotoAndPlay(5);
}

but it only stays at frame 5 and doesnt play the rest of the frame
can any one help me?