Re: losing focus: Maybe this a problem with tap to click on a touchpad? This happens to me and drives me crazy and it's invariably me inadvertently clicking with my palms. Disabling tap to click helps a lot.
I use an external keyboard, but I'm referring to the cases where popups and various things taking their time and showing up and disappearing. e.g. if I open teams and switch to something else, when teams finishes loading it comes to the front of the screen instead of staying in its lane. so it steals focus from say a text editor. it's like the user is supposed to be really dumb and slow, so you're meant to click on teams and wait a few minutes for it to load properly and then start interacting with the computer again.
My problem with Windows today is it taking so long waiting for it to switch focus sometimes. If I don't artificially wait, a few keystrokes go to the previous target or off into the aether.
that's one of my issues with it, but forgot to specify - I really really hate clicking or typing and having to do it again.