add keyboard events
key down event (non-repeated)
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
keys | String / [String] | array of keys that need to be down for the event to run |
event | Function | event to run |
key up event (non-repeated)
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
keys | String / [String] | array of keys that need to be down for the event to fire |
event | Function | event to run |