The inputs_modifiers signal is emitted when the guest keyboard locks are changed.
You can read the current state from key_modifiers property.