I need to use these commands occasionally when I attaching MovieClips at runtime and they don’t pick up keyboard events
stage.stageFocusRect=false; // Turns off the big yellow rectangle that indicates what item has fouc
stage.focus = myMovieClip; // sets the focus to the clip you want.