TLF and the Enter Key

hi,

i’m trying to do a basic thing, making an chat box using input text field in as3 with the new TLF format. (CS5 new thing for none latin speaking people)
As it is the TLF has no enter event.
I tried to bypass it by making a KEY_DOWN keyboard event whenever the text field is in focus but I get no recognition
on key-code 13.

All I want is for the enter key to do something with the text. help???

here is the bypassed code.

thanks,

Aviv

txtChat.addEventListener (FocusEvent.FOCUS_IN,onChatFocusIn)
txtChat.addEventListener (FocusEvent.FOCUS_OUT,onChatFocusOut)
stage.addEventListener( KeyboardEvent.KEY_DOWN, onChatKeyPress);

private function onChatKeyPress(e:KeyboardEvent):void
{
if (e.keyCode == 13 && isInFocus) doSomething();
}
private function onChatFocusIn(e:FocusEvent) {
isInFocus = true;
}
private function onChatFocusOut(e:FocusEvent) {
isInFocus = false;
}