# Hitting \<enter\> submits the inputtext content

**URL:** <https://forum.kirupa.com/t/hitting-enter-submits-the-inputtext-content/239716>\
**Category:** flash\
**Created:** [September 25, 2007, 10:46am UTC](https://forum.kirupa.com/t/hitting-enter-submits-the-inputtext-content/239716 "2007-09-25T10:46:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maidomax](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/maidomax/32/3686_2.png) [@maidomax](https://forum.kirupa.com/u/maidomax)\
**Post date:** [September 25, 2007, 10:46am UTC](https://forum.kirupa.com/t/hitting-enter-submits-the-inputtext-content/239716/1 "2007-09-25T10:46:13Z")

</div>

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?
