In my application aw-watcher-afk (https://github.com/ActivityWatch/aw-watcher-afk/issues/12) I stumbled upon an issue with KeyboardSwitch and MouseSwitch (https://github.com/ActivityWatch/aw-watcher-afk/issues/12).
So, I did a quick google and found this:
https://stackoverflow.com/questions/26156633/pythoncom-crashes-on-keydown-when-used-hooked-to-certain-applications
Turns out the fix is easy, but the repo seems pretty dead with the last commit in 2008. Any chance to get such a fix merged?