# Key Combo HELL

**URL:** https://forum.kirupa.com/t/key-combo-hell/200470
**Category:** flash
**Created:** [September 12, 2006, 3:02pm UTC](https://forum.kirupa.com/t/key-combo-hell/200470 "2006-09-12T15:02:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![modelreject](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@modelreject](https://forum.kirupa.com/u/modelreject)
#### Post date: [September 12, 2006, 3:02pm UTC](https://forum.kirupa.com/t/key-combo-hell/200470/1 "2006-09-12T15:02:50Z")

</div>

Can anyone help? My brain is destroyed.  
Does anyone know how to do this in actionscript?

If a the computer key is held down and the mouse is clicked…save variable.  
When the computer key is hit(by itself)…recall variable.  
When the mouse is clicked…it does its own thing.

I want the variable to be saved only when the key is held down and the mouse is clicked and for their separate functions to be carried out as normal on single clicks and presses.

This is a huge one to get your head around.

Thanks.  
M
