code: def qteRemoveKey(self, keysequence: QtmacsKeysequence):
          keyMap = self
          keyMapRef = keyMap
          keysequence = keysequence.toQtKeylist()
          for key in keysequence[:-1]:
              if key not in keyMap:
                  return
              keyMap = keyMap[key]
          if keysequence[-1] not in keyMap:
              return
          else:
              keyMap.pop(keysequence[-1])
          keysequence = keysequence[:-1]
          while(len(keysequence)):
              keyMap = keyMapRef
              for key in keysequence[:-1]:
                  keyMap = keyMap[key]
              if len(keyMap[key]):
                  return
              else:
                  keyMap.pop(key)