Key Input not working... weird problem

Hi Guys,

I have a movieclip that gets added to the stage when i press the ‘M’ key.

When clicking on this movieclip, it calls a function to remove itself from the stage.

This all works fine.

But then if i press the ‘M’ key again, nothing happens. In fact, it doesn’t even register that the ‘M’ key or any key for that matter has been pressed.

If I then click anywhere on the stage, then keyboard access is restored and I can press the ‘M’ key again and it works.

Any help would be greatly appreciated.