I have exactly same problem at iMac Pro 5K without any external display see at TotalSpaces support on MacOS 10.15 Catalina
Problem is in the “input monitoring permission” i think.
No problem on My MacBook or iMac 27" with exactly same version of Catalina.