The Flex keyboard can detect when the the cover is folded over it.
1. When the cover is folded over the keyboard, the keyboard turns itself off automatically.
2. When the cover is folded back away from the keyboard, it automatically turns itself on.