void OnChar(wxKeyEvent& ch)
Sent to the window when the user has pressed a key. See wxKeyEvent for details.
For a list of the wxWindows virtual key codes, see the include file base/common.h. Note that the ASCII values do not have explicit key codes: they are passed as ASCII values.
See also wxWindow::OnEvent for mouse event notification. OnChar is currently applicable to canvas subwindows only.