How to get keypress to work without clicking on .swf

I have successfully made a keypress listener that does an action when the user presses a specific key. The only problem is that it doesn’t work until the user physically clicks on the swf.

Is there a way to set the listener to detect a key press even if the user hasn’t “activated” the .swf? When I refresh the webpage I’m already in the web browser so the detect should work from the start and the user shouldn’t have to click on the .swf to make the keypress work.

Maybe there is no way around this but it’d be nice or if someone knows a work around?

Thanks

Here’s my code stripped down to the essentials:

[SIZE=“1”]keyListener = new Object();
keyListener.onKeyDown = function() {
x = Key.getAscii();
if (x == 104 || x == 72) {
…Do Something…
}
};
Key.addListener(keyListener);[/SIZE]