# Enter functions

**URL:** <https://forum.kirupa.com/t/enter-functions/163968>\
**Category:** flash\
**Created:** [September 27, 2005, 6:37pm UTC](https://forum.kirupa.com/t/enter-functions/163968 "2005-09-27T18:37:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zimmermann](https://avatars.discourse-cdn.com/v4/letter/z/f19dbf/32.png) [@Zimmermann](https://forum.kirupa.com/u/Zimmermann)\
**Post date:** [September 27, 2005, 6:37pm UTC](https://forum.kirupa.com/t/enter-functions/163968/1 "2005-09-27T18:37:34Z")

</div>

So I just found out that by pressing enter you go to next frame. And that annoys me, because I can’t seem to use the enter button for something else.

This is the code I’ve tried using:

```auto

var enterListener:Object = new Object();
Key.addListener(enterListener);
enterListener.onKeyDown = function () {
if (Key.isDown(Key.ENTER)){
_root.gotoAndStop(5);
}
}

```

🙂
