You call setKeyboardName() here, but above you just set keyboardName directly...

You call handleNewKeyboards(), but handleNewKeyboards() does not use the keyboardName variable.  

I think you need to modify handleNewKeyboards() to add the value of this setting to the list of enabled keyboards, even when the keyboard group is not enabled.