change shutdown condition to outside double-touch

It was too easy to miss the keys and close the keyboard; now a
two-finger touch outside the keyboard is required.  Still a possible
miss with two hands, but less likely.