In a project I use some edit boxes, text boxes, panels and system buttons to present some statistics. The application also has a mini game integrated.
While the key controls for the mini game work fine, they at the same time control the buttons as soon as one of the system buttons was used. For example, space simulates a button click on the last button used.
While I can "unfocus" the edit boxes with "focus off", this totally messes up the key controls. Once "focus off" was used no pressed key is passed to the events any more, instead you just hear a system sound indicating that you click somewhere not supposed to.
How do I make the key controls work using the MouseKeyboard object, even when a button was clicked or an edit box was "unfocussed"?