• Determine the actual printable character that is generated from a pressed key. If the key does not correspond to a printable character, undefined is returned. The result may be altered by modifier keys.

    Parameters

    • event: KeyboardEvent

    Returns string | undefined