It happens to me as well, and as the others stated it’s because of the MSFS window losing focus. (even though it is full screen)
You don’t have to have any other program running in the background to loose focus on a (full screen) window. It’s a Windows issue.
I do however believe the devs can make it so that a button click registers with one click even if the window is not focussed.