Actually, just use the GetFocus code ( found at http://www.blitzbasic.com/bbs/posts.php?topic=24521 ) to see if the textarea has focus, and if it does, in your main loop, move the focus somewhere else :)
That's probably the easiest way to do it.
That's probably the easiest way to do it.