A collection of keypresses the model would like to perform.

interface Keypress {
    keys: string[];
    type: "keypress";
}

Properties

Properties

keys: string[]

The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.

type: "keypress"

Specifies the event type. For a keypress action, this property is always set to keypress.