The state_changed signal is emitted when the state of the keyboard changes, e.
g when Caps Lock is turned on or off. See get_caps_lock_state.