# Using enter as well

**URL:** <https://forum.kirupa.com/t/using-enter-as-well/281997>\
**Category:** Uncategorized\
**Created:** [February 16, 2009, 3:32pm UTC](https://forum.kirupa.com/t/using-enter-as-well/281997 "2009-02-16T15:32:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michdd](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@michdd](https://forum.kirupa.com/u/michdd)\
**Post date:** [February 16, 2009, 3:32pm UTC](https://forum.kirupa.com/t/using-enter-as-well/281997/1 "2009-02-16T15:32:37Z")

</div>

I have one function that runs when a certain button is pressed. However, I want this function to also run when enter is pressed. I know that I can make a function to do this alone, but is there any way that I can make the function that I already have made (that is set to run when the button is pressed) to run also when enter is pressed?
