This event occurs when the user presses and releases an ANSI key.
Private Sub object_KeyPress(keyascii)
The keyascii parameter is passed by reference; changing it sends a different character to the object. Changing keyascii to 0 cancels the keystroke so that the object receives no character.
If the KeyPreview property is set to True, a form receives the event before controls on the form receive the event. Use the KeyPreview property to create global keyboard-handling routines.