# How can I capture shift key pressed event?

**URL:** <https://discourse.slicer.org/t/how-can-i-capture-shift-key-pressed-event/14875>\
**Category:** Development\
**Created:** [December 4, 2020, 5:13am UTC](https://discourse.slicer.org/t/how-can-i-capture-shift-key-pressed-event/14875 "2020-12-04T05:13:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tesla2678](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tesla2678/32/9062_2.png) [@Tesla2678](https://discourse.slicer.org/u/Tesla2678)\
**Post date:** [December 4, 2020, 5:13am UTC](https://discourse.slicer.org/t/how-can-i-capture-shift-key-pressed-event/14875/1 "2020-12-04T05:13:20Z")

</div>

Hello there,

I would like to detect the “Shift” key pressed event. But I can’t find any clue to do that.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 4, 2020, 5:14am UTC](https://discourse.slicer.org/t/how-can-i-capture-shift-key-pressed-event/14875/2 "2020-12-04T05:14:01Z")

</div>

It depends on a lot of things. What would you like to achieve?

---

<div class="post-metadata">

**Author:** ![Tesla2678](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tesla2678/32/9062_2.png) [@Tesla2678](https://discourse.slicer.org/u/Tesla2678)\
**Post date:** [December 8, 2020, 1:50am UTC](https://discourse.slicer.org/t/how-can-i-capture-shift-key-pressed-event/14875/3 "2020-12-08T01:50:01Z")

</div>

Hello lassoan,

I have abanbon this methon. Thank you.
