# Perspective check if ctrl key is pressed when onClick event fires

**URL:** <https://forum.inductiveautomation.com/t/perspective-check-if-ctrl-key-is-pressed-when-onclick-event-fires/46182>\
**Category:** Ignition\
**Created:** [April 29, 2021, 8:28pm UTC](https://forum.inductiveautomation.com/t/perspective-check-if-ctrl-key-is-pressed-when-onclick-event-fires/46182 "2021-04-29T20:28:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ToMakPo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tomakpo/32/23875_2.png) [@ToMakPo](https://forum.inductiveautomation.com/u/ToMakPo)\
**Post date:** [April 29, 2021, 8:28pm UTC](https://forum.inductiveautomation.com/t/perspective-check-if-ctrl-key-is-pressed-when-onclick-event-fires/46182/1 "2021-04-29T20:28:21Z")

</div>

Is there a way in the perspective `onClick` event to check if the `ctrl` key is being pressed when the mouse is clicked?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 29, 2021, 8:57pm UTC](https://forum.inductiveautomation.com/t/perspective-check-if-ctrl-key-is-pressed-when-onclick-event-fires/46182/2 "2021-04-29T20:57:38Z")

</div>

`if event.ctrlKey`?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/4/347d87bcce8553156cedf967f8351993d323969c.png)
