# How do you bypass buttons by pressing enter in a textbox?

**URL:** <https://forum.kirupa.com/t/how-do-you-bypass-buttons-by-pressing-enter-in-a-textbox/205537>\
**Category:** Uncategorized\
**Created:** [October 30, 2006, 5:57pm UTC](https://forum.kirupa.com/t/how-do-you-bypass-buttons-by-pressing-enter-in-a-textbox/205537 "2006-10-30T17:57:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![c2k6](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@c2k6](https://forum.kirupa.com/u/c2k6)\
**Post date:** [October 30, 2006, 5:57pm UTC](https://forum.kirupa.com/t/how-do-you-bypass-buttons-by-pressing-enter-in-a-textbox/205537/1 "2006-10-30T17:57:35Z")

</div>

I have the code for a button that takes the input box text and turns it into a google ssearch

```auto
stop();
var addPluses = function():Void {
 var inp:String = input_txt.text;
 //split the input string on the spaces - this forms an array
 var spl:Array = inp.split(" ");
 // join the array back together w/ "+"
 var finish:String = spl.join("+");
 getURL("http://www.google.co.uk/search?hl=en&q=" + finish + "&meta=", "_self")
 
}
go_btn.onRelease = function():Void {
 addPluses();
}

```

so my question is how do i get that now so when you type the search and hit enter it eliminates the need to press the search button?

Cheers for any help
