Keys not active when surfing to an swf file

I have made a movie that only consists of actionscript, it’s for a math project I have to do for school.

I have exported it as an swf file and I have put that one online.

It is a 3D structure that rotates when pressing the arrow pictures.
Now when you surf to it the keys only start to work when you’ve clicked the structure with your mouse first.

Is there any way to avoid this?

Hope someone can help,