Fix docked keyboard detection for iOS 8

 #618 **Cannot detect iOS 8 iPad keyboard modes (split, docked, undocked)** Regression on #265.