# Multiple actions on one line? Possible

**URL:** <https://forum.kirupa.com/t/multiple-actions-on-one-line-possible/168276>\
**Category:** flash\
**Created:** [November 5, 2005, 7:33pm UTC](https://forum.kirupa.com/t/multiple-actions-on-one-line-possible/168276 "2005-11-05T19:33:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcscrookedfin](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@marcscrookedfin](https://forum.kirupa.com/u/marcscrookedfin)\
**Post date:** [November 5, 2005, 7:33pm UTC](https://forum.kirupa.com/t/multiple-actions-on-one-line-possible/168276/1 "2005-11-05T19:33:30Z")

</div>

So I have a input field that I would like for people to either press return or enter and have the action take place, or they can click the submit button. I know this is possible, but I can’t seem to figure it out. Help anyone?

so 2 actions  
onRelease = function(){

and

onKeyPress(enter) = function(){

is it possible to put them on the same line?

btn.onKeyPress(enter) and onRelease = function(){

???
