You can try adding Lightroom to the Accessibility list for macOS and ensure that there is a check mark in front of it. You can do this by going to the System Preferences for your Mac, then Security and Privacy, then select the Privacy tab. You can select Accessibility from the list on the left. If you don't see Lightroom in the list, you can add it by first unlocking the window using the lock at the bottom left, then clicking the + icon and navigating to the Applications folder. Once done, restart the computer before testing.