Try to fix "XKeycodeToKeysym deprecated" warning

Used XGetKeyboardMapping instead of deprecated XKeycodeToKeysym