Multiple keyboard layouts on OpenBSD

My ThinkPad P14s Gen 5 AMD has a French (ISO AZERTY). But it is connected to a dock and I mainly use an external (USB) keyboard with an ANSI US layout. Because I&rsquo;d rather not type with an US layout on an FR keyboard, and vice-versa, I have configured my OpenBSD OS to deal with both, nearly automagically.