# Holding down multiple modifier keys on the right half often results in no key-up events for the modifiers

**URL:** <https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673>\
**Category:** Help and Getting Started\
**Created:** [November 3, 2017, 9:13am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673 "2017-11-03T09:13:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [November 3, 2017, 9:13am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/1 "2017-11-03T09:13:49Z")

</div>

I seem to have an annoying problem with Ctrl and Shift modifier keys when used together in editor shortcuts.

I use a few multi-stroke shortcuts, mainly in Intellij Idea, for example `Ctrl+Shift+T, Ctrl+Shift+R`. I execute that the following way:

1. Press and hold RightCtrl and RightShift
2. Press and release T
3. Press and release R
4. Release RightCtrl and RightShift

This often results in Ctrl and/or Shift to get stuck, as in my computer interpreting them as still being held down. If I continue typing it won’t do what I would expect it to do. To fix this I mash RightCtrl and RightShift a bit and then it’s fine. Needless to say this is frustrating.

Investigating the issue a bit, this is what I have so far:

- This hasn’t happened using any other keyboard
- It doesn’t happen if I use the modifier keys separately, like `Ctrl+C, Ctrl+V` or holding down Shift to type uppercase text
- I first thought it was a problem with SpaceCadet but since then I disabled it in my layout and it’s still happening as of [https://github.com/imrekoszo/Model01-Firmware/tree/988814beab3b3c2f022e182deb4636cf8e5c3559](https://github.com/imrekoszo/Model01-Firmware/tree/988814beab3b3c2f022e182deb4636cf8e5c3559)
- my layout doesn’t do anything funky, I basically just removed mouse keys and moved a few others around. The most relevant change is that I swapped `Cmd` with `Ctrl` on the left and `Alt` with `Ctrl` on the right so I can press `Ctrl+Shift` using only one thumb

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![jesse](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jesse/32/361_2.png) [@jesse](https://community.keyboard.io/u/jesse)\
**Post date:** [November 3, 2017, 6:15pm UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/2 "2017-11-03T18:15:38Z")

</div>

@ngetal - Can you reproduce this with the _stock_ firmware? We can figure it out either way, but if it’s a problem with the firmware we ship, it’s going to be easier to reproduce AND a more serious, higher priority issue that will get fixed a lot faster.

If you _can_ repro it with the stock firmware, please open a GitHub issue against Kaleidoscope.

---

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [November 3, 2017, 11:19pm UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/3 "2017-11-03T23:19:05Z")

</div>

Will do on Monday. Any particular commit you would like me to use?

---

<div class="post-metadata">

**Author:** ![jesse](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jesse/32/361_2.png) [@jesse](https://community.keyboard.io/u/jesse)\
**Post date:** [November 4, 2017, 2:43am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/4 "2017-11-04T02:43:56Z")

</div>

The binary build would be ideal: [https://github.com/keyboardio/Model01-Firmware-Builds/blob/master/v1.13-MP1-BUILD/atmega32u4\_firmware.hex](https://github.com/keyboardio/Model01-Firmware-Builds/blob/master/v1.13-MP1-BUILD/atmega32u4_firmware.hex)

---

<div class="post-metadata">

**Author:** ![Kipples](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@Kipples](https://community.keyboard.io/u/Kipples)\
**Post date:** [November 4, 2017, 7:08am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/5 "2017-11-04T07:08:57Z")

</div>

this sounds like something I have also experienced while using the steno plugin where i will release keys and nothing gets registered but the keys are still being held down i submitted an issue here [https://github.com/keyboardio/Kaleidoscope-Steno/issues/3](https://github.com/keyboardio/Kaleidoscope-Steno/issues/3) but reading this I am thinking the issue is deeper than then steno plugin. especially reading it effects you only with the right modifiers.

---

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [November 4, 2017, 8:20am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/6 "2017-11-04T08:20:09Z")

</div>

Thanks. Is there some help available on how to flash that? I couldn’t find anything in the wiki.

---

<div class="post-metadata">

**Author:** ![jesse](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jesse/32/361_2.png) [@jesse](https://community.keyboard.io/u/jesse)\
**Post date:** [November 4, 2017, 8:22am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/7 "2017-11-04T08:22:26Z")

</div>

[Flashing problem on Ubuntu (SOLVED)](https://community.keyboard.io/t/flashing-problem-on-ubuntu/628/13?u=jesse) should be an ok start

---

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [November 6, 2017, 9:43am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/8 "2017-11-06T09:43:49Z")

</div>

I managed to reproduce this using the firmware you linked with one difference. `RightCtrl+RightShift` no longer caused problems, so I changed my editor shortcuts to work off `Alt+Shift` - which on the default firmware are the same physical keys as described in the OP.

I now get `Alt` and `Shift` stuck consistently when doing the following:

1. Press and hold `LeftAlt` and `RightShift` (the 2 leftmost thumb keys on the right half)
2. Press and release `T`
3. Press and release `R`
4. Release `LeftAlt` and `RightShift`

I went a little further and tried this in a few other configurations:

- Could not reproduce it using the left half of the keyboard or by holding one modifier on the left and the other on the right
- Could not reproduce it using the buttons labeled `shift` and `ctrl` on the default arrangement on right half no matter what firmware I used
- Reproduced it using any 2-button combination of `shift`, `alt` and `space` on the default arrangement on the right half
- Reproduced it using any 2-button combination of `alt`, `space` and `ctrl` on the default arrangement on the right half

GH issue: [https://github.com/keyboardio/Kaleidoscope/issues/239](https://github.com/keyboardio/Kaleidoscope/issues/239)

---

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [November 24, 2017, 10:15pm UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/9 "2017-11-24T22:15:32Z")

</div>

On @algernon’s suggestion I did a few other tests, here’s what I found (copied from the GH issue):

It could very well be a hw issue. I recorded a short video demonstrating the problem: [https://youtu.be/rapOiyf1OFY](https://youtu.be/rapOiyf1OFY)

Notes:

- I remapped the right thumb cluster to `U I O P`
- I managed to repro the sticking by just pressing pairs of keys in the right thumb cluster
- Contrary to my earlier tests, using any 2 keys from the right cluster at the same time can achieve this
- When keys get stuck, I can unstuck them by pressing any of the keys on the right half, even the likes of `fn`. Pressing keys on the left half does not achieve this (this is not in the recording therefore)
- The issue seems to only affect the 4 thumb keys. I haven’t yet achieved this using any other keys.

Edit: forgot to mention and it does not come across properly in the video that the right cluster tends to not recognise one or both of a pressed key pair. So out of say 10 presses of `I`+`P` as above, there would be one where neither I or P are recognised and another one where only one of them.

@jesse any idea what I could try next?

---

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [May 15, 2018, 10:24am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/10 "2018-05-15T10:24:51Z")

</div>

Update for anyone who might still be interested. The problem is still present and Jesse has been great helping me try to get to the bottom of it. On his suggestion I managed to reproduce the problem using the built in test mode of the keyboard on the stock firmware and I recorded two short videos showcasing the problem.

### 1

In the first one at [https://youtu.be/qU01yX7-E\_g](https://youtu.be/qU01yX7-E_g) I tap two of the right hand thumb keys at the same time and sometimes they get stuck in the down state after they are released.

### 2

In the second one at [https://youtu.be/MmbxDY1eThI](https://youtu.be/MmbxDY1eThI) I press all 4 keys of the thumb clusters at the same time while in test mode. The left side is okay, but the right side intermittently has problems registering key downs, indicating there is something funky with that row.

For example at 0:31:

1. press all 4 keys -\> only Shift and Alt registers
2. release Ctrl while holding Shift, Alt and Space down -\> Space registers
3. press Ctrl back -\> all of them are green

### -

Can anyone else reproduce any of these? My keyboard is an MP1, in case that matters.

---

<div class="post-metadata">

**Author:** ![buc](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/buc/32/523_2.png) [@buc](https://community.keyboard.io/u/buc)\
**Post date:** [May 15, 2018, 8:43pm UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/11 "2018-05-15T20:43:44Z")

</div>

I have attempted to reproduce your issue on my MP1 keyboard using the method from video 2 and I was _not_ able to do so.

I can’t say that it isn’t common, only that it doesn’t seem to be ubiquitous.

---

<div class="post-metadata">

**Author:** ![Kipples](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@Kipples](https://community.keyboard.io/u/Kipples)\
**Post date:** [May 15, 2018, 10:41pm UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/12 "2018-05-15T22:41:19Z")

</div>

yes I can reproduce this, I first noticed it when using the steno plugin the right side ‘space’ ‘ctrl’ being held down at same time would sometimes cause the keyboard to think they were still being held down after I released them.

---

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [May 16, 2018, 7:53am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/13 "2018-05-16T07:53:29Z")

</div>

@buc @Kipples thanks for that.

It is still uncertain whether this is a HW or SW problem. I can consistently repro it with two different MP1 right halves, but it appears there are relatively few of us who are affected.

---

<div class="post-metadata">

**Author:** ![buc](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/buc/32/523_2.png) [@buc](https://community.keyboard.io/u/buc)\
**Post date:** [May 16, 2018, 1:57pm UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/14 "2018-05-16T13:57:33Z")

</div>

For what it’s worth, I’m running almost stock firmware. The only customization I’ve done so far is to remove most of the LED lighting patterns and add in one for (56, 0, 98).

---

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [May 16, 2018, 2:17pm UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/15 "2018-05-16T14:17:48Z")

</div>

Yeah, whatever this is, running the stock fw won’t solve it for those affected.

In those 2 videos I recorded I was also using the stock fw available at [https://github.com/keyboardio/Model01-Firmware-Builds/blob/master/v1.22-MP2-BUILD/atmega32u4\_firmware.hex](https://github.com/keyboardio/Model01-Firmware-Builds/blob/master/v1.22-MP2-BUILD/atmega32u4_firmware.hex)

---

<div class="post-metadata">

**Author:** ![kaiser](https://avatars.discourse-cdn.com/v4/letter/k/dfb087/32.png) [@kaiser](https://community.keyboard.io/u/kaiser)\
**Post date:** [May 16, 2018, 3:15pm UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/16 "2018-05-16T15:15:32Z")

</div>

Will MP5 be held up until this problem is root caused and fixed?

---

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [May 16, 2018, 4:07pm UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/18 "2018-05-16T16:07:41Z")

</div>

Good question, so far the only reproduction I know of other than mine is @Kipples’s. That might indicate it could be isolated to a few units.

How about you? Can you repro it?

(reposted as a reply)

---

<div class="post-metadata">

**Author:** ![jesse](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jesse/32/361_2.png) [@jesse](https://community.keyboard.io/u/jesse)\
**Post date:** [May 17, 2018, 1:47am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/19 "2018-05-17T01:47:08Z")

</div>

Since the electronics for MP5 are already done and we’ve only seen two people able to reproduce this, we’re not planning on holding MP5. (I expect this to be something that can be fixed in software)

---

<div class="post-metadata">

**Author:** ![ngetal](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/ngetal/32/2937_2.png) [@ngetal](https://community.keyboard.io/u/ngetal)\
**Post date:** [May 18, 2018, 9:40am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/20 "2018-05-18T09:40:26Z")

</div>

I finally managed to repro this somewhere else: the leftmost column of the left half.

I can get pairs of keys there stuck in either the up

![IMG_20180518_100148](https://canada1.discourse-cdn.com/flex031/uploads/keyboard/original/2X/b/b383b8feef963e0bcab7e2f2aa4df768c77793c5.jpg)

or down state.

![IMG_20180518_100122](https://canada1.discourse-cdn.com/flex031/uploads/keyboard/original/2X/2/2b91a6a8cf2bd970105e3c08a15f7301df8b44a8.jpg)

Perhaps there is an off-by-one error somewhere?

---

<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:** [May 18, 2018, 9:51am UTC](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673/21 "2018-05-18T09:51:31Z")

</div>

FYI, @jesse said on IRC last night that he thinks he figured out the problem, and it is an occasional packet loss between the key scanner and the AVR.

[Next page](https://community.keyboard.io/t/holding-down-multiple-modifier-keys-on-the-right-half-often-results-in-no-key-up-events-for-the-modifiers/673.md?page=2)
