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

**URL:** <https://forum.kirupa.com/t/fmx-massive-slow-down-when-using-the-key-isdown/96428>\
**Category:** Uncategorized\
**Created:** [December 9, 2003, 9:43am UTC](https://forum.kirupa.com/t/fmx-massive-slow-down-when-using-the-key-isdown/96428 "2003-12-09T09:43:43Z")\
**Posts on this page:** 2\
**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/96428/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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 10, 2003, 10:20am UTC](https://forum.kirupa.com/t/fmx-massive-slow-down-when-using-the-key-isdown/96428/2 "2003-12-10T10:20:14Z")

</div>

you bet-cha cheers for that 🙂
