Generally I don't think this is because of a lacking key event. If the keyboard goes away also its corresponding input device node will disappear. If that happens the upper input stack should take care about that. Adding mir as component here too to get their view on this while doing some more investigation.
** Also affects: mir (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to bluez in Ubuntu. https://bugs.launchpad.net/bugs/1550050 Title: repeating phantom key when bt disconnects Status in Canonical System Image: Confirmed Status in Canonical Pocket Desktop: New Status in bluez package in Ubuntu: Confirmed Status in mir package in Ubuntu: New Bug description: Every now and then when having bt mouse/keyboard connected - you will see when selecting a text box there is a repeating character (there is no specific character, but always repeats) It seems to be related somehow to bt devices disconnecting the only cure is a reboot This was reproduced by turning off the keyboard while holding down a key. We suspect the key up event is never delivered. This mimics the case where the BT connection drops off momentarily or perhaps an event is missed over the BT connection. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1550050/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp