Hi.
Go to the DCS settings menu, VR tab and check that the mouse is restricted to the game window. This will stop most inadvertent desktop activations but I still find that the task bar can be activated so click and hold the Windows task bar (before entering the sim) and drag it to the side of your monitor. It will now be out of reach of DCS.
Cheers.
Jav.