This function closes the keyboard handle and decrements the use count. When the use count goes to zero, the handle associated with the keyboard is closed.