Keyboard input not working within HTML

I’m loading an AS 2.0 swf into AS 3.0. Keyboard input works fine when played in test movie but not when displayed within a HTML page. Can someone please explain why this is?

Update: So it works fine in IE but not Firefox. Is this a bug?