def key_description(character):
 ascii_code = ord(character)
 if (ascii_code < 32):
  return 'Ctrl+{:c}'.format((ord('@') + ascii_code))
 else:
  return repr(character)

def key_description ( character ) : ascii_code = ord ( character ) if ( ascii_code < 32 ) : return 'Ctrl+{:c}' . format ( ( ord ( '@' ) + ascii_code ) ) else : return repr ( character )
generate a readable description for a key .