Application window keeps getting deselected even while open and active
Hi, FYI, I'm running 12.4 on a 2017 Retina 27" iMac. Has anyone encountered the problem where, even when a particular application like Messages or Safari or even MS Word is open and active, the open app gets deselected so that you can't either type or click inputs into it without actually reselecting the app via mouse click? I've only noticed this problem very recently, and for all I know it could be a problem with either my keyboard or Magic Mouse, but since this appears to happen with either inputting device, I rather doubt it. I hope I'm describing the problem well! I'm curious as to whether anyone here has seen this issue before, and definitely whether there's either a workaround or any inkling that Apple is addressing this in future updates. Thanks in advance!
iMac 27″ 5K, macOS 12.4