Enter functions

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:


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

:slight_smile: