# Using "tab" in textfield changes the focus

**URL:** <https://forum.kirupa.com/t/using-tab-in-textfield-changes-the-focus/306960>\
**Category:** flash\
**Created:** [March 25, 2010, 8:52am UTC](https://forum.kirupa.com/t/using-tab-in-textfield-changes-the-focus/306960 "2010-03-25T08:52:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jadezoole](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@jadezoole](https://forum.kirupa.com/u/jadezoole)\
**Post date:** [March 25, 2010, 8:52am UTC](https://forum.kirupa.com/t/using-tab-in-textfield-changes-the-focus/306960/1 "2010-03-25T08:52:59Z")

</div>

Hi, I want to catch press tab event in textfield. I even know the keyCode of tab, but as I press tab in the textfield, the focus jumps on the next mc.  
How can I disable changing focus, or how can I reach tab on press event?

Now I have the following code, but It doesn’t catch the tab:

```auto

private function keybEventHandler(event:KeyboardEvent) {
			trace(event.keyCode)
			if (event.charCode == 9)
			{
				eventHandler();
			}
}

```
