Refactored TeclaIMEAdapter.setKeyboardView method.