Property EventType
EventType
Gets or sets the type of keyboard event: press, release, or repeat.
public KeyEventType EventType { get; init; }
Property Value
Remarks
Defaults to Press, which preserves backward compatibility with all existing keyboard handling code.
Not all drivers populate this property. When the driver does not distinguish event types, the value remains Press.
This property does not participate in equality comparisons. Two Key instances that differ only in EventType are considered equal.