Switch from keys being a number to being a string.
Handle arrow keys and Shift-Tab.