Change/show different keyboard with Java script

I have successfully implemented Marc’s script to add keyboards to Keyman with Java script, now I need to be able to select/change/show a keyboard.
When I select the keyboard from the Keyman OSK selector, I’m able to grab the ISOcode, but I can’t seem to be able to tell Keyman to display the new keyboard (language).

const tags = [‘en’,‘fr’,‘ta’];
kmw.addKeyboards(… => ‘@’+tag));

I’d like to be able to programmatically change the keyboard display to (for example) French.
Thanks in advance,

You can switch keyboards with setActiveKeyboard or for control-by-control presets, you can use setKeyboardForControl.