Control access to input monitoring on Mac
Some apps can monitor your keyboard, mouse or trackpad even when you’re using other apps. You can decide which apps are allowed to monitor your devices.
Choose Apple menu > System Settings, then click Privacy & Security in the sidebar. (You may need to scroll down.)
Click Input Monitoring on the right.
For each app in the list, turn the ability to monitor your input devices on or off.
If you allow third-party apps or websites to monitor your input devices, any information they collect is governed by their terms and privacy policies. It’s recommended that you learn about the privacy practices of those parties.
If you’re a systems administrator and want information about deploying security settings, see Apple Platform Deployment.