Screen lag when pressing custom mouse hotkey shortly after or before a keyboard input

I use piper to have custom mouse hotkeys.
Since i switched to manjaro i noticed that i often have screen lags when i use these custom hotkeys.
After further investigation i found out that it happens for hotkeys that send keyboard keys and only if i press such mouse hotkey shortly after or before a keyboard input (key does not seem to matter).
Anyone knows where the issue could lie?