I suspect that when the focus leaves the text box it is going to the buttons, which you could always call by hitting just the letter of the hot key without puching .
>I have a form with invisible buttons and access key defined in the caption property. According documentation >access key operate with ALT key. > >But in my case the click method fires just by pressing the key letter, without ALT, when the cursor is out of >a text box. > >TIA.