# How do I capture Ctrl + another key?

**URL:** https://forum.kirupa.com/t/how-do-i-capture-ctrl-another-key/170122
**Category:** flash
**Created:** [November 23, 2005, 12:21am UTC](https://forum.kirupa.com/t/how-do-i-capture-ctrl-another-key/170122 "2005-11-23T00:21:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![OM2](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OM2](https://forum.kirupa.com/u/OM2)
#### Post date: [November 23, 2005, 12:21am UTC](https://forum.kirupa.com/t/how-do-i-capture-ctrl-another-key/170122/1 "2005-11-23T00:21:41Z")

</div>

I want to be able to capture Ctrl + another key.  
How do I do this?

I’ve got the following code from help:

var keyListener:Object = new Object();  
keyListener.onKeyDown = function()  
{  
trace("DOWN -\> Code: “+Key.getCode()+” ACSII: “+Key.getAscii()+” Key: "+chr(Key.getAscii()));  
};  
Key.addListener(keyListener);

But I can’t seem to be able to capture key combinations like Ctrl + another key.

For what I need to do, I really need to capture several key combinations.  
At the very least, I want to be able to capture Ctrl + another key.

Any help would be appreciated.

Thanks.

OM
