# Catching a KeyPress for control keys

**URL:** <https://forum.juce.com/t/catching-a-keypress-for-control-keys/46264>\
**Category:** Development\
**Created:** [May 31, 2021, 9:39am UTC](https://forum.juce.com/t/catching-a-keypress-for-control-keys/46264 "2021-05-31T09:39:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lubenskiy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lubenskiy/32/8439_2.png) [@lubenskiy](https://forum.juce.com/u/lubenskiy)\
**Post date:** [May 31, 2021, 9:39am UTC](https://forum.juce.com/t/catching-a-keypress-for-control-keys/46264/1 "2021-05-31T09:39:38Z")

</div>

Hello!

I have a class that catches `keyPressed(const juce::KeyPress &key)` any letter key I press.  
But I cannot catch such keys as _Option_, _Command_, _Control_, _Shift_.

What am I missing?

Thanks in advance!

D.

---

<div class="post-metadata">

**Author:** ![lubenskiy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lubenskiy/32/8439_2.png) [@lubenskiy](https://forum.juce.com/u/lubenskiy)\
**Post date:** [May 31, 2021, 10:22am UTC](https://forum.juce.com/t/catching-a-keypress-for-control-keys/46264/2 "2021-05-31T10:22:10Z")

</div>

**Solved.**

By using `modifierKeysChanged	(	const juce::ModifierKeys & modifiers	)` instead.

I think this is a long term JUCE bug. Description says KeyPress should be triggered on modifiers, too. But it is not.
