# Key board escape button functionality to close the pop up

**URL:** <https://forum.inductiveautomation.com/t/key-board-escape-button-functionality-to-close-the-pop-up/12476>\
**Category:** Ignition\
**Created:** [December 19, 2016, 3:00pm UTC](https://forum.inductiveautomation.com/t/key-board-escape-button-functionality-to-close-the-pop-up/12476 "2016-12-19T15:00:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandsawant05](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@anandsawant05](https://forum.inductiveautomation.com/u/anandsawant05)\
**Post date:** [December 19, 2016, 3:00pm UTC](https://forum.inductiveautomation.com/t/key-board-escape-button-functionality-to-close-the-pop-up/12476/1 "2016-12-19T15:00:49Z")

</div>

Hi Friends

Can anyone help me with my requirement. I want to close the message box or pop up generated by pressing the escape button on the key board. Is there any specific code for it or any function. Please help me on this requirement. I have attached an image for reference. I want to close these box on escape button.

Thanks

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 20, 2016, 2:02am UTC](https://forum.inductiveautomation.com/t/key-board-escape-button-functionality-to-close-the-pop-up/12476/2 "2016-12-20T02:02:16Z")

</div>

Huh. Not sure. But the space bar should work.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 20, 2016, 1:31pm UTC](https://forum.inductiveautomation.com/t/key-board-escape-button-functionality-to-close-the-pop-up/12476/3 "2016-12-20T13:31:41Z")

</div>

Works for me using system.gui.messageBox() on v7.8.4
