Navbar settings: add alternate key layout for the keyboard

Switches to an alternate key layout when the keyboard is present

back, IME switcher, blank space, left, up, down, right

PS2: remove the blank space on phone layouts
PS3: fixup sidekey and loop logic

Change-Id: I150d3391753f7177f99ed35e83e54ea7500684ff