Use consistent keymap for capslock detection
This change will use the same keymap for detecting capslock state as was registered with the keymap state change handler, instead of registering the keymap associated with the plug but then checking the keymap associated with the default display. Also minor performance improvement by not looking up the keymap again every time a key is pressed.