Key event on window

Hello,
is it possible to have key pressed event on window?
Client would like to close currently opened window or to open main window by pressing Esc key on a keyboard.

Hi!
I use the “Client Event Script” -> “Keystroke” -> “Client Keystroke Script”
Action=Released for Esc

Oh, I really forgot about that feature!
Спасибо!

[quote=“Sergey_D”]Hi!
I use the “Client Event Script” -> “Keystroke” -> “Client Keystroke Script”
Action=Released for Esc[/quote]