This is my first Magic Keyboard. Does this kind of thing happen often? I first went hunting through my settings but then just did a reboot of the iPad, and it’s fine now.
Most such issues can be resolved by just removing the ipad from the keyboard and them reconnecting it. If that doesn’t work then rebooting usually will. But yes such issues are not uncommon.