When you use btstack mouse, it disables the iPad's control of the bluetooth chip and takes over. So if you have connected the keyboard through Bluetooth in the settings app, when you open and enable btstack, it will disconnect with the keyboard.
Hopefully someone who knows how to run them both will come and help.