The KeyPress event occurs when a key is pressed and then released.
void KeyPress( short nKeyAscii );
[in] Specifies the standard numeric ANSI code for the character.
This event does not return a value.
This event occurs when the keystroke results in any printable keyboard character, the CTRL key combined with a character from the standard alphabet or one of a few special characters, and the ENTER or BACKSPACE key.