How can I disable keyboard, with API function?