# Key event on window

**URL:** <https://forum.inductiveautomation.com/t/key-event-on-window/7711>\
**Category:** Ignition\
**Created:** [December 16, 2013, 7:39am UTC](https://forum.inductiveautomation.com/t/key-event-on-window/7711 "2013-12-16T07:39:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quper](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quper](https://forum.inductiveautomation.com/u/quper)\
**Post date:** [December 16, 2013, 7:39am UTC](https://forum.inductiveautomation.com/t/key-event-on-window/7711/1 "2013-12-16T07:39:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sergey\_D](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Sergey\_D](https://forum.inductiveautomation.com/u/Sergey_D)\
**Post date:** [December 16, 2013, 12:37pm UTC](https://forum.inductiveautomation.com/t/key-event-on-window/7711/2 "2013-12-16T12:37:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![quper](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quper](https://forum.inductiveautomation.com/u/quper)\
**Post date:** [December 18, 2013, 6:14am UTC](https://forum.inductiveautomation.com/t/key-event-on-window/7711/3 "2013-12-18T06:14:21Z")

</div>

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]
