From Version 1.5, wxWindows defines platform-independent constants for most common keys, including function and cursor keys. The virtual keycodes for standard ASCII characters are the ASCII codes themselves, unlike under Windows. Key presses are sent to the OnChar member of a window with a wxKeyEvent argument, which can be used to determine the state of the shift and control keys as well as finding the virtual key code of the depressed key.
The wxCanvas class has a default OnChar handler which scrolls the canvas using the cursor keys.