After manualy putting the Intel driver corresponding with my bluetoothdevice (windows advice against it) and in that driver there is an option to "Allow to turn off bluetooth to save power", I disabled this option. After that it would work even when switching programs.
Now the problem is the keyboard needs to be within 1,2m of the computer to work and I`m sitting 1,5m from the computer.
I just found out, so I`ll be doing some more testing and post more later.
I dont know much about computers, soo dont consider this advice, it`s just what I did. Any input is more than welcome.