getKeyStroke

Gets a formatted string representation of the keyboard shortcut.

This method creates a string that includes all the modifier keys and the main key, formatted according to the current platform (symbols on macOS, text on other platforms).

Return

A formatted string representation of the keyboard shortcut