Strange, I tested the code before posting and it works fine for me. Do you've some code in other events of the checkbox that could interfere?
>
>Same thing - the code gets executed, the checkbox blinks checked / unchecked if initially unchecked, and vice versa if checked.
>
>But with the mouse it works as expected.
>
>
>>Try
LPARAMETERS nKeyCode, nShiftAltCtrl
>>IF nKeyCode <> 32
>> KEYBOARD "{SPACEBAR}" PLAIN CLEAR
>> NODEFAULT
>>ENDIF
>>
--sb--