Generalize numpad navigation to allow more sophisticated keymapping