# Mouse left button isDown: Key.isDown(1) Doesn't work on Macs

**URL:** <https://forum.kirupa.com/t/mouse-left-button-isdown-key-isdown-1-doesnt-work-on-macs/217984>\
**Category:** flash\
**Created:** [March 3, 2007, 10:06pm UTC](https://forum.kirupa.com/t/mouse-left-button-isdown-key-isdown-1-doesnt-work-on-macs/217984 "2007-03-03T22:06:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arayh](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Arayh](https://forum.kirupa.com/u/Arayh)\
**Post date:** [March 3, 2007, 10:06pm UTC](https://forum.kirupa.com/t/mouse-left-button-isdown-key-isdown-1-doesnt-work-on-macs/217984/1 "2007-03-03T22:06:14Z")

</div>

Some of you may or may not be aware that the following code can detect that the mouse button is down. (Something that’s oddly missing from the Flash API.)

```auto

if (Key.isDown(1)){
 trace("left mouse button down");
}
if (Key.isDown(2)){
 trace("right mouse button down");
}

```

[COLOR=red]However, this has been reported to not work on Mac computers![/COLOR]  
I do not recommend using / relying on the above code.

The question is: Is anyone aware if there exists a Key Code for the Mac mouse button?  
I do not own a Mac and do have close contacts to people with one, so I cannot test this for myself.
