code: def keyword_to_key(word,alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZ'):
      ''' convert a key word to a key by appending on the other letters of the alphabet.
      e.g. MONARCHY -> MONARCHYBDEFGIJKLPQSTUVWXZ
      '''
      ret = ''
      word = (word + alphabet).upper()
      for i in word:
          if i in ret: continue
          ret += i
      return ref keyword_to_key(word,alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZ'):
      ''' convert a key word to a key by appending on the other letters of the alphabet.
      e.g. MONARCHY -> MONARCHYBDEFGIJKLPQSTUVWXZ
      '''
      ret = ''
      word = (word + alphabet).upper()
      for i in word:
          if i in ret: continue
          ret += i
      return ret
docs: convert a key word to a key by appending on the other letters of the alphabet.
      e.g. MONARCHY -> MONARCHYBDEFGIJKLPQSTUVWXZ