Hitting <enter> submits the inputtext content

I have made a simple game in flash. If the player gets a high enough score he can submit it to highscores. Right now it is done by entering your name into a text input box, and clicking a button. I would like to invoke the same method when a user hits enter after he has entered his name. Can somebody tell me how i can do this?