IF nKeyCode = 32 Thisform.Timer.Enabled = NOT Thisform.Timer.Enabled ENDIFThat would cause the spacebar to toggle the timer on and off. I don't how to tie the timer to the pressed state of a key though. You would probably need to write an FLL to read the keyboard state from teh OS.