# Command + Period -\> is not being recognized in KeyDown

**URL:** <https://discourse.libcinder.org/t/command-period-is-not-being-recognized-in-keydown/573>\
**Category:** Using Cinder\
**Created:** [February 22, 2017, 2:26pm UTC](https://discourse.libcinder.org/t/command-period-is-not-being-recognized-in-keydown/573 "2017-02-22T14:26:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrFuzzy](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@MrFuzzy](https://discourse.libcinder.org/u/MrFuzzy)\
**Post date:** [February 22, 2017, 2:26pm UTC](https://discourse.libcinder.org/t/command-period-is-not-being-recognized-in-keydown/573/1 "2017-02-22T14:26:01Z")

</div>

Hey there,

I’d like to know if I am doing something wrong here, or if this is a bug.

I’m trying to recognize command + period in my KeyDown method:

```
void TestApp::keyDown( KeyEvent event ){
    cout << "period_01: " << (event.getCode() == KeyEvent::KEY_PERIOD) << endl;
    cout << "period_02: " << (event.getChar() == KeyEvent::KEY_PERIOD) << endl;
    cout << "period_03: " << (event.getChar() == '.') << endl;
    
    cout << "cmd: " << (event.isMetaDown()) << endl;
    
    cout << getElapsedSeconds() << endl << endl;
}

```

When i hold the cmd-key the period-key is not recognized as a new keydown event. Every other key is, though…

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [February 22, 2017, 3:39pm UTC](https://discourse.libcinder.org/t/command-period-is-not-being-recognized-in-keydown/573/2 "2017-02-22T15:39:57Z")

</div>

Are you on a mac? When I press cmd+period I hear a bell sound, which means it is handled by the operating system. Cmd+period is some kind of cancel button for closing dialogs on a mac as a quick google search shows. It is handled as a cancel operation before it reaches the keyDown method.

> <https://stackoverflow.com/questions/5577355/cmd-period-does-not-work-as-expected>
