Generalize the code mapping android key events into pad button bits, add support for keys needed to navigate UI.