wxCanvas::OnChar

void OnChar(int key, int flags)

This default handler interprets cursor key movement and scrolls the canvas accordingly. Override the function to change this behaviour (see wxWindow::OnChar for details).