def METHOD_NAME(self, btn):
    fw = QtWidgets.QApplication.focusWidget()
    if fw is None: return
    if btn.KEY_CHAR in self.NO_ORD_KEY_LIST:
        keyPress = QtGui.QKeyEvent(QEvent.KeyPress, btn.KEY_CHAR, Qt.NoModifier, '')
    else:
        if self.btn_shift.isChecked():
            modifier = Qt.ShiftModifier
            self.btn_shift.setChecked(False)
        else:
            modifier = Qt.NoModifier
        keyPress = QtGui.QKeyEvent(QEvent.KeyPress, btn.KEY_CHAR, modifier, chr(btn.KEY_CHAR))
    try:
        QtWidgets.QApplication.sendEvent(fw, keyPress)
    except:
        pass