for logging using enter key ... u can add eventlistenrer to the particular textbox....example...
ti.addEventListener (KeyboardEvent.KEY_DOWN , EnterKeyEvent);
private function EnterKeyEvent (event:KeyboardEvent):void
if(event.keyCode == 13)
You have a class called FocusManager ( http://livedocs.adobe.com/flex/3/langref/mx/managers/FocusManager.html ) that helps you control focus trought your application. You can use methods like setFocus, showFocus, hideFocus and so on to get your application up and running the way it is supposed to.
As for the keyboard problem, you need to assign an event listener to the desired object so it can react to keyboard events. Please read this: http://livedocs.adobe.com/flex/3/html/help.html?content=Capturing_User_Input_3.html hope it helps.
With best regards,
however, you will find in some browsers that the Flex app itself does not get focus until you click on it. See the recent thread called "Setting focus to Flex control" for the browser-dependent problems. Once the Flex app has focus within the containing page then all follows through as others have said, but there is this earlier step which can't yet be easily resolved in a cross-browser manner.