# Help adding "ENTER" key in code please

**URL:** <https://forum.kirupa.com/t/help-adding-enter-key-in-code-please/242237>\
**Category:** Uncategorized\
**Created:** [October 23, 2007, 11:35pm UTC](https://forum.kirupa.com/t/help-adding-enter-key-in-code-please/242237 "2007-10-23T23:35:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bidgeeman](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@bidgeeman](https://forum.kirupa.com/u/bidgeeman)\
**Post date:** [October 23, 2007, 11:35pm UTC](https://forum.kirupa.com/t/help-adding-enter-key-in-code-please/242237/1 "2007-10-23T23:35:31Z")

</div>

Hi.  
I need some help working out how to add the “ENTER” key as an option as well as the onRelease mouse function to this script please.

var password:String;  
Selection.setFocus(“password\_txt”);  
continue\_btn.onRelease = function()  
{  
password = password\_txt.text;  
play();  
}

Many thanks.  
Bidge (actionscript beginner)
