# onLeftMouseUp event only when Ctrl is held?

**URL:** <https://community.cesium.com/t/onleftmouseup-event-only-when-ctrl-is-held/1102>\
**Category:** CesiumJS\
**Created:** [March 28, 2014, 6:11pm UTC](https://community.cesium.com/t/onleftmouseup-event-only-when-ctrl-is-held/1102 "2014-03-28T18:11:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Dan\_Bagnell](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@Dan\_Bagnell](https://community.cesium.com/u/Dan_Bagnell)\
**Post date:** [March 31, 2014, 5:51pm UTC](https://community.cesium.com/t/onleftmouseup-event-only-when-ctrl-is-held/1102/2 "2014-03-31T17:51:23Z")

</div>

You can add a callback for ctrl-left mouse up event with:

var handler = new Cesium.ScreenSpaceEventHandler(scene.canvas);

handler.setInputAction(

function (event) {

var mousePosition = event.position;

// …

}, Cesium.ScreenSpaceEventType.LEFT\_UP, Cesium.KeyboardEventModifier.CTRL);

Dan

---

_[View the full topic](https://community.cesium.com/t/onleftmouseup-event-only-when-ctrl-is-held/1102)._
