# \[FMX\] Massive slow down when using the key.isDown

**URL:** <https://forum.kirupa.com/t/fmx-massive-slow-down-when-using-the-key-isdown/37361>\
**Category:** flash\
**Created:** [December 9, 2003, 9:43am UTC](https://forum.kirupa.com/t/fmx-massive-slow-down-when-using-the-key-isdown/37361 "2003-12-09T09:43:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davymacca](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@davymacca](https://forum.kirupa.com/u/davymacca)\
**Post date:** [December 9, 2003, 9:43am UTC](https://forum.kirupa.com/t/fmx-massive-slow-down-when-using-the-key-isdown/37361/1 "2003-12-09T09:43:43Z")

</div>

I am making a jigsaw kind of game and when you Ctrl click on a piece it rotates.

I am using the following to capture the Ctrl key:

[AS]onClipEvent (enterFrame)  
{  
if (Key.isDown(Key.CONTROL))  
{  
\_root.click = true;  
}  
else  
{  
\_root.click = false;  
}  
}[/AS]

When the Ctrl button is pressed the movie runs very slow and the drag command has massive lag. Has anyone else had this problem?

:sigh:
