PHP Code:
import flash.external.ExternalInterface;
ExternalInterface.call("focus"); 
will set the focus to the Flash

Check the ExternalInterface Class in the liveDocs (link in my footer) for all communications between JS and Actionscript.

Your first post was unclear to me. My 1st answer was on how to trigger something in Flash when a key is pressed. Obviously not what you need right now.

gparis