# Detecting a mouse click while key is pressed

**URL:** https://forum.kirupa.com/t/detecting-a-mouse-click-while-key-is-pressed/134341
**Category:** Uncategorized
**Created:** [January 17, 2005, 10:24pm UTC](https://forum.kirupa.com/t/detecting-a-mouse-click-while-key-is-pressed/134341 "2005-01-17T22:24:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JRocket](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@JRocket](https://forum.kirupa.com/u/JRocket)
#### Post date: [January 17, 2005, 10:24pm UTC](https://forum.kirupa.com/t/detecting-a-mouse-click-while-key-is-pressed/134341/1 "2005-01-17T22:24:39Z")

</div>

Is it possible to detect when a user is clicking while simultaneously pressing a button on the keyboard? For instance, if a user presses “a” on the keyboard and then clicks on a specific movie clip, I’d like to trigger an animation.

Any help is much appreciated!

Thanks,  
JRocket
