CocoonJS has an option to open a keyboard on android and ios, you can use CocoonJS plugin in C2. Unfortunately DOM elements aren't supported in CocoonJS
You need to create your own textbox by sprites from scratch, but it's not complicated. I'm not sure keyboard object would work with CocoonJS how it can return values from key pressed.