def METHOD_NAME(scanCode: int) -> Optional[Qt.Key]:
    # Right shift
    if scanCode == 0x36:
        return Qt.Key.Key_Shift
    # Right Windows
    elif scanCode == 0x5c:
        return Qt.Key.Key_Meta
    for mapping in [SCANCODE_MAPPING, SCANCODE_MAPPING_NUMPAD]:
        for k, v in mapping.items():
            if v == scanCode and k not in EXTENDED_KEYS:
                return k
    return None