Implement application keypad for cursor keys. Reorganize onChar wx event handling.