code: func formatVirtualKey(key uint16, controlState uint32, escapeSequence []byte) string {
  	shift, alt, control := getControlKeys(controlState)
  	modifier := getControlKeysModifier(shift, alt, control)
  
  	if format, ok := arrowKeyMapPrefix[key]; ok {
  		return fmt.Sprintf(format, escapeSequence, modifier)
  	}
  
  	if format, ok := keyMapPrefix[key]; ok {
  		return fmt.Sprintf(format, modifier)
  	}
  
  	return ""
  }
docs: // formatVirtualKey converts a virtual key (e.g., up arrow) into the appropriate ANSI string.