0
Instead of the keyPress event, try KeyDown or KeyUp events. To a user it is sematics really, but with programming I found that the KeyDown event has a lot more options than keypress. KeyDown allows you to distinguish between a distinct key press or if the key being held down for a period of time, etc.
In fact, the only way that I know how to handle the function keys (F1 - F12) is with the KeyDown or KeyUp events.