Physically, I have a US English keyboard on a G4 Powerbook. In input sources I have two keyboard layouts selected - a custom layout (created with Ukelele) based on UK English and German.
The keyboard layout keeps changing of its own accord, without any user input. This happens erratically, but...