Simple setup. When any key is pressed, make a sound and change the background color of an empty frame. If the window is not active, it will not make the sound and will not change the color of the background (added the background test to make sure it wasn't an audio problem).
There are joystick objects which don't have this problem, but the default keyboard object as well as Control X do. Does anyone have a solution?