# Button Click Disables Keyboard

**URL:** <https://forum.kirupa.com/t/button-click-disables-keyboard/326880>\
**Category:** flash\
**Created:** [January 18, 2012, 9:11pm UTC](https://forum.kirupa.com/t/button-click-disables-keyboard/326880 "2012-01-18T21:11:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![molkman](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@molkman](https://forum.kirupa.com/u/molkman)\
**Post date:** [January 18, 2012, 9:11pm UTC](https://forum.kirupa.com/t/button-click-disables-keyboard/326880/1 "2012-01-18T21:11:49Z")

</div>

Hello,  
I am rather new to AS3 and I have a few difficulties with the new buttons usage. I have a Document Class in which the Keyboard is used to navigate a Child. There is also another Child of a different class, which is kind of a popup box that you can open and close by separate buttons. The close button lies inside the popup box class. However, when I click this button to close the box, removing the Child, keyboard actions don’t react until I click on the screen once more.

The same happens when I click a button that goes to the next frame, in which the button isn’t there anymore, but keyboard actions are requested. But they only work, once I click inside the swf screen again.

Is there a way to, like, switch back to the Document Class, like a focus? Or does anybody know a place that explains the new way of using buttons? I am pretty confused by that.

Thanks!
