Then, AFTER the DOM element is created, you can create the keyboard class. I did this as soon as a text field was clicked on. With this method I can make sure that the DOM is created already:
I know it’s 2 years later, but that is what the MM notification DOM-OBJECTS-CREATED means… .