_Added in 1.9.2_
*on :KEYDOWN:<@>::*
Trigger when a user presses a key in a window, can be used to override built-in key-binds.
_See also [[on KEYUP]], [[$keyval]], [[$keychar]], [[$keyrpt]]._
*Parameters*
- The level for the event to trigger.
- The [[Matchtext]] to listen to.
<*#?=!@> - The [[Matchtarget]] to listen to.
- The commands to be performed when the event listener's criteria is met.
*Example*
on *:KEYDOWN:*:*:echo -ag Pressed key $keyval in $active