Method ToRune NamespaceTerminal.Gui.Input AssemblyTerminal.Gui.dll ToRune(KeyCode) Converts a KeyCode to a Rune. Useful for determining if a key represents is a printable character. public static Rune ToRune(KeyCode key) Parameters key KeyCode Returns Rune The key converted to a Rune. default if conversion is not possible. Remarks Keys with Ctrl or Alt modifiers will return default. If the key is a letter key (A-Z), the Rune will be the upper or lower case letter depending on whether ShiftMask is set. If the key is outside the CharMask range, the returned Rune will be default.