JavaScript prevent (mobile) keyboard to hide

I have this HTML which has editor and buttons above the keyboard:

------------
|1| Hello  |
|2| World  |
| |        |
| |        |
------------
|Tab|( ) [ |
------------
|qwertyuiop|
| asdfghkl |
| zxcvbnm  |
| [     ]  |
------------

My keyboard is showed when I clicked the editor.
If I click the button Tab while the keyboard is shown, the keyboard is hiding. I want to prevent the keyboard from hiding.

Like

keyboard.preventDefault();