Fix key handling.

Use the keymap sent by the compositor and improve the way the text
and the Qt::Key of the keysym is calculated, making the keypad work.

Change-Id: Icc4667dab0649ce47792c512fbcaa0193e2ffd45