# Check for combitnation keypress

**URL:** https://forum.kirupa.com/t/check-for-combitnation-keypress/181020
**Category:** flash
**Created:** [March 5, 2006, 7:01pm UTC](https://forum.kirupa.com/t/check-for-combitnation-keypress/181020 "2006-03-05T19:01:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![paul\_ferrie](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@paul\_ferrie](https://forum.kirupa.com/u/paul_ferrie)
#### Post date: [March 5, 2006, 7:01pm UTC](https://forum.kirupa.com/t/check-for-combitnation-keypress/181020/1 "2006-03-05T19:01:06Z")

</div>

Hy guys.  
I am trying to figure out a wway to launch a section of my site with a combitnation keyPress (CTRL+C) I do have this from the helps files but triggers as soon as CTRL is pressed and not when the CTRL+C is pressed.

```auto

function myOnKeyDown () {
 if ((Key.getAscii () == 0) && (Key.isDown (Key.CONTROL))) {
  doLogin ();
 }
}
var myListener:Object = new Object ();
myListener.onKeyDown = myOnKeyDown;
Key.addListener (myListener);
doLogin = function () {
 trace ("do login");
};

```

Any help much appreciated.  
THanks  
Paul
