My games are minimizing to desktop

I just got my brand new gaming pc that i built and randomly it keeps minimizing during games like LoL. and pauses during surgeon simulator. I think its my keyboard bu if you could say if its anything else id want to know. its not a pop up and while writing this my keyboard would stop typing until i clicked where i was typing. Please help

I had a similar problem in some games when I tried to bind something to the Windows key. Check that your keybinds don't include that blasted key. I vaguely remember hearing about a keyboard product, program or work-around which would allow you to disable the Windows key during games. Maybe someone with a better memory can help with that.