# Detecting modifiers

**URL:** <https://forum.juce.com/t/detecting-modifiers/7379>\
**Category:** General JUCE discussion\
**Created:** [August 29, 2011, 3:05pm UTC](https://forum.juce.com/t/detecting-modifiers/7379 "2011-08-29T15:05:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shlomi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/shlomi/32/99_2.png) [@Shlomi](https://forum.juce.com/u/Shlomi)\
**Post date:** [August 29, 2011, 3:05pm UTC](https://forum.juce.com/t/detecting-modifiers/7379/1 "2011-08-29T15:05:45Z")

</div>

Hi.

Is it possible to detect the command modifier before pressing another key.

For example, when pressing Command + ‘A’ , can I detect the Command modifier before the ‘A’ key was pressed?

Thanks

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [August 31, 2011, 8:55am UTC](https://forum.juce.com/t/detecting-modifiers/7379/2 "2011-08-31T08:55:31Z")

</div>

Component::modifierKeysChanged() ?

---

<div class="post-metadata">

**Author:** ![Shlomi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/shlomi/32/99_2.png) [@Shlomi](https://forum.juce.com/u/Shlomi)\
**Post date:** [September 4, 2011, 10:04pm UTC](https://forum.juce.com/t/detecting-modifiers/7379/3 "2011-09-04T22:04:17Z")

</div>

Thank you Jules.
