iPad Pro 11" keyboard case stops working when screen is laid flat against the back sleeve
The previous generation 10.5" has this same limitation. There is a magnetic switch in the bottom edge that prevents the keyboard from activating if it's not in one of the slots on the keyboard case - simply having the connection to the iPad is not sufficient.