Whenable.IsPressed()

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);