Fix Keyboard IllegalStateException