onKeyRelease(k: Key | Key[], action: (k: Key)=>void): KEventController

Register an event that runs when user release certain keys.

paramk= The key(s) to listen for. See

paramaction- The function that runs when a user releases certain keys

// release `a` or `b` keys
onKeyRelease([`a`, `b`], (k) => {
    debug.log(`Released the ${k} key...`);
});

returnsThe event controller.

sincev2000.1

onKeyRelease(action: (k: Key)=>void): KEventController

Register an event that runs when user releases a key.

paramaction- The function that runs when a user releases a

// release a key
onKeyRelease((k) => {
    debug.log(`Released the ${k} key...`);
});

returnsThe event controller.

sincev2000.1

kaplay logo

Misc

Layer