# kaleidoscope::hid::wasModifierKeyActive() syntax change

**URL:** <https://community.keyboard.io/t/kaleidoscope-wasmodifierkeyactive-syntax-change/4692>\
**Category:** Programming\
**Created:** [March 17, 2021, 3:13pm UTC](https://community.keyboard.io/t/kaleidoscope-wasmodifierkeyactive-syntax-change/4692 "2021-03-17T15:13:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rloic](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/rloic/32/3491_2.png) [@rloic](https://community.keyboard.io/u/rloic)\
**Post date:** [March 17, 2021, 3:13pm UTC](https://community.keyboard.io/t/kaleidoscope-wasmodifierkeyactive-syntax-change/4692/1 "2021-03-17T15:13:37Z")

</div>

Hello,

I was using kaleidoscope::hid::wasModifierKeyActive() but with the last update v1.99.3 of kaleidoscope, it seems this syntax is not good anymore.

I found in documentation that it is because of HID facade deprecation and to be replace by Kaleidoscope.hid(). But I don’t find the right syntax.

Does anyone know how to do ?

Thanks.

---

<div class="post-metadata">

**Author:** ![rloic](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/rloic/32/3491_2.png) [@rloic](https://community.keyboard.io/u/rloic)\
**Post date:** [March 17, 2021, 3:26pm UTC](https://community.keyboard.io/t/kaleidoscope-wasmodifierkeyactive-syntax-change/4692/2 "2021-03-17T15:26:35Z")

</div>

Despite search before creating this topic I found the answer [here](https://community.keyboard.io/t/firmware-stops-compiling-after-i-upgrade-kaleidoscope-in-arduino-ide/4673/2)

The right syntax is now `Kaleidoscope.hid().keyboard().wasModifierKeyActive()`

Thanks to @merlin
