I was facing this bug in Pop OS 21.04 when changing keyboard, pressing media keys in laptop (volume, brightness, etc) or using a mouse with configurable hotkeys.
The delay was very long. After I worked on Pedros' solution written above (scroll lock key), the delay reduced significantly. But it was still present. If not gaming, barely could notice it. The solution that worked for me was this workaround from "Wiggy boy" https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1858#note_818548 Now the delay is completely gone -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to mutter in Ubuntu. https://bugs.launchpad.net/bugs/1777708 Title: Desktop briefly becomes unresponsive when receiving a keypress from a different device/mapping than the last keypress (in Xorg) To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell/+bug/1777708/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs