# Why i must click on the stage to initialize key event?

**URL:** <https://forum.kirupa.com/t/why-i-must-click-on-the-stage-to-initialize-key-event/318595>\
**Category:** Uncategorized\
**Created:** [January 24, 2011, 10:54pm UTC](https://forum.kirupa.com/t/why-i-must-click-on-the-stage-to-initialize-key-event/318595 "2011-01-24T22:54:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![apricota](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@apricota](https://forum.kirupa.com/u/apricota)\
**Post date:** [January 24, 2011, 10:54pm UTC](https://forum.kirupa.com/t/why-i-must-click-on-the-stage-to-initialize-key-event/318595/1 "2011-01-24T22:54:36Z")

</div>

hey, i created a game with 2 frames:  
1 is the welcome screen + player name input text box.  
the other is the game itself.

at first the game didn’t have the welcome screen, and if i wanted to play (with the arrows keys) there was no problem to type one of the arrows and make the player move…

since i added the first frame, in order to play i must click somewhere on the stage and only then i can press the arrows keys… before clicking nothins happens!

it is important to mention that it happens in the flash player ( i didn’t check what happens in web browsers…)

how can i set the focus of the game in the second frame?

tnx a lot!
