Sadly there is no clean way of detecting a keyboard is connected to an iPad If the keyboard is connected we want to disable all the touch related hacks on iOS This allows iPad users to specify they have a keyboard connected. Setting is per device.