Methods
onKeyDown(key, fn) → {void}
Binds a function to key down
Parameters:
Name | Type | Description |
---|---|---|
key | string | The name of the key to bind |
fn | function | The function to call |
- Source
Returns:
- Type:
- void
onKeyUp(key, fn) → {void}
Binds a function to key up
Parameters:
Name | Type | Description |
---|---|---|
key | string | The name of the key to bind |
fn | function | The function to call |
- Source
Returns:
- Type:
- void