Fix a logic judgment in RFKeyboard.