# Detecting Key Combinations

**URL:** <https://forum.kirupa.com/t/detecting-key-combinations/197367>\
**Category:** Uncategorized\
**Created:** [August 15, 2006, 9:11pm UTC](https://forum.kirupa.com/t/detecting-key-combinations/197367 "2006-08-15T21:11:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayme65](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Jayme65](https://forum.kirupa.com/u/Jayme65)\
**Post date:** [August 15, 2006, 9:11pm UTC](https://forum.kirupa.com/t/detecting-key-combinations/197367/1 "2006-08-15T21:11:00Z")

</div>

I’ve followed the thread there:  
[http://www.kirupa.com/forum/showthread.php?t=211149&page=1](http://www.kirupa.com/forum/showthread.php?t=211149&page=1)

I understand that this class allow the script to detect when keys are pressed in combination.

But what is exactly the implementation when a key is used both in single and combination states.  
Let’s say that you’ve the “q” key used alone and “shift-q”…how would one proceed to achieve this detection?

Thanks very much,
