# MouseKeys Plugin - separate keys for press and release?

**URL:** <https://community.keyboard.io/t/mousekeys-plugin-separate-keys-for-press-and-release/877>\
**Category:** Programming\
**Created:** [December 19, 2017, 6:44am UTC](https://community.keyboard.io/t/mousekeys-plugin-separate-keys-for-press-and-release/877 "2017-12-19T06:44:33Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)\
**Post date:** [July 18, 2018, 3:38pm UTC](https://community.keyboard.io/t/mousekeys-plugin-separate-keys-for-press-and-release/877/10 "2018-07-18T15:38:29Z")

</div>

No, it will not work anymore, not as is. The [AppSwitcher](https://github.com/keyboardio/Kaleidoscope/tree/master/examples/AppSwitcher) example in the Kaleidoscope repo may be useful to see how to keep a key pressed nowadays.

As for one-shot double-tap sticky for a mouse key… hm. Should be doable with a thin, specialised plugin. On `onKeyswitchEvent`, it’d record the last pressed key. If that’s the left mouse button - again - flip a flag, and keep it pressed in `beforeReportingState`. If the flag is flipped, and the pressed key is the mouse button, unflip the flag.

That should be the gist of it, I think. If you need further help, please open a new thread, and I’ll try to help more.

---

_[View the full topic](https://community.keyboard.io/t/mousekeys-plugin-separate-keys-for-press-and-release/877)._
