Resolve deprecation warnings for XKeycodeToKeysym

XKeycodeToKeysym has been deprecated. This replaces it with XkbKeycodeToKeysym.