code: def _unrecognised(achr):
      
      if options['handleUnrecognised'] == UNRECOGNISED_ECHO:
          return achr
      elif options['handleUnrecognised'] == UNRECOGNISED_SUBSTITUTE:
          return options['substituteChar']
      else:
          raise KeyError(achr)
docs: Handle unrecognised characters.