Keyboard Layouts
Features
Types
Whenable Methods
Shortcut Qualifier Methods
Global Methods
args: none
returns: Whenable
IsPressed() is used to register a pressed event for the most recent identifier in a When chain.
// registers a "pressed" event for the "a" key When('a').IsPressed().Execute(console.log);