public KeyPressPattern(char character) { type = KeyPressPatternType.Character; Modifiers = default; Key = default; Character = character; }
public KeyPressPattern(ConsoleModifiers modifiers, ConsoleKey key) { type = KeyPressPatternType.ConsoleKey; Modifiers = modifiers; Key = key; Character = MapToCharacter(key); }