Keyboard and mouse problem

Anybody else having problems using keyboard and mouse in game? I can use Xbox controller in game, but when i use keyboard or mouse the game stops for about 10 sec before continuing. And sometimes the game freezes completely. I have tried different keyboards and mouse.
I have the version installed from Microsoft Store.

as it works in steam: disable presets in the client

Thanks. But I have the version from Microsoft Store.

Problem Solved. I had two GPU s in my computer. When I removed one, the problem was gone.

I have a similar problem. After a while, in flight, usually after pressing buttons to fast (shift pageup/ down to move hdg bug) both my keyboard and mouse freeze. Joystick keeps working. I can land but not exit the flight, so I have to crash in order to get out of this.