nextFrame( ) Y U NO WORK

Hey, I’ve only started using cs3 and i can’t get this code to work:

stage.addEventListener(KeyboardEvent.KEY_UP, touch);

function touch (e:KeyboardEvent):void
{
if (bullet.hitTestObject(enemy1))
{
nextFrame();
}
}

you control a bullet. if it touches enemy1, it will move to the next frame. But i cant seem to make this work. is there something wrong with the code? HELP! im a n0ob