The key-event fields the mapping reads. A DOM KeyboardEvent satisfies it.

interface DrawingKeyEvent {
    altKey?: boolean;
    ctrlKey?: boolean;
    key: string;
    metaKey?: boolean;
    shiftKey?: boolean;
}

Properties

altKey?: boolean
ctrlKey?: boolean
key: string
metaKey?: boolean
shiftKey?: boolean