I have a textfield on stage that I have set focus on named noentry1

I want to write script that that will just go to frame #10 when the user presses the enter key.

I don't want the user to type anything in the textfield. if they do I want them to go to frame 20 where I can tell them they shouldn't have typed anything in the test field.

here's what I got so far.

Any help would be greatly appreciated.

code:
on(keyPress "<Enter>"){
if(noentry1.text != " ");
gotoAndStop(10);
}



Thanks in advance

-Lemorris