"xmodmap -v -pm" shows the current modifiers, like the shift keys.

"xmodmap -v -pke" shows how all the keycodes are mapped to symbolic names.