AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.1" />

 KeyboardEvent

public class KeyboardEvent : UiEvent
Represents the event arguments for a keyboard event.
public bool IsAltPressed { get; }

Gets if the alt key is pressed.

public bool IsCtrlPressed { get; }

Gets if the control key is pressed.

public bool IsMetaPressed { get; }

Gets if the meta key is pressed.

public bool IsRepeated { get; }

Gets if the key press was repeated.

public bool IsShiftPressed { get; }

Gets if the shift key is pressed.

public string Key { get; }

Gets string representation of the pressed key.

public string Locale { get; }

Gets the locale of the keyboard.

public KeyboardLocation Location { get; }

Gets the location of the keyboard that initiated the event.

public KeyboardEvent()

Creates a new event.

public KeyboardEvent(string type, bool bubbles, bool cancelable, IWindow view, int detail, string key, KeyboardLocation location, string modifiersList, bool repeat)

Creates a new event and initializes it.

public KeyboardEvent(string type, IDictionary<string, object> eventInitDict = null)

Creates a new event and initializes it.

public bool GetModifierState(string key)

Returns the current state of the specified modifier key.

public void Init(string type, bool bubbles, bool cancelable, IWindow view, int detail, string key, KeyboardLocation location, string modifiersList, bool repeat)

Initializes the keyboard event.