You could set up a timer to switch focus back to the mainWindow every half second or so (assuming the focus should always be on the mainWindow).
How to handle a keypress
BlitzPlus Forums/BlitzPlus Programming/How to handle a keypressThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.