# Enter Key Listener AS3 HELP!

**URL:** <https://forum.kirupa.com/t/enter-key-listener-as3-help/332461>\
**Category:** flash\
**Created:** [June 16, 2014, 7:05am UTC](https://forum.kirupa.com/t/enter-key-listener-as3-help/332461 "2014-06-16T07:05:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mia\_Couch](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@Mia\_Couch](https://forum.kirupa.com/u/Mia_Couch)\
**Post date:** [June 16, 2014, 7:05am UTC](https://forum.kirupa.com/t/enter-key-listener-as3-help/332461/1 "2014-06-16T07:05:39Z")

</div>

**The Code:**

_myTextField.addEventListener(KeyboardEvent.KEY\_DOWN, KeyDownFunc);_

_function KeyDownFunc(event){_

- if(event.keyCode == Keyboard.ENTER){\*
- 

```
   trace("Enter");*

```

- }\*  
\*}

\*\*\*The Problem:  
\*\*  
I have Control\>Disable Keyboard Shortcuts turned on, but Flash is not recognizing when I hit the Enter key. Hitting Ctrl+Enter works, but Enter does not. I have tried applying the same event listener to the stage and it works, but I need it applied myTextField. I have tried publishing it, uploading it to deviantart and testing it in-browser and the behavior remains the same (for this test I used a dynamic text field test.text=“Enter”; since you can’t use trace for that kind of test). It works for Ctrl+Enter but not Enter.
