add hide(Device)Keyboard method for mjsonwp and tests