How to handle a keypress

BlitzPlus Forums/BlitzPlus Programming/How to handle a keypress

The 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.

By setting up a timer, it does set the focus back to the main window, BUT

If you press a button down, and while you are pressing it down, the timer happens to go off, the button will reset (go back up) even though you didn't release the mouse button yet.

This is definitely not something I want to happen.

Does anyone have any ideas on how to handle catching a key being pressed (without the possibility of it not being detected)?