We then computed a keyboard distance between any two given keys
based on the minimum number of adjacent keys that the finger
must travel over to reach one from the other assuming a QWERTY
keyboard layout. For example the keyboard distance for the {a,s}
pair is 1 and {a,c} is 3 (based on the path a→s→d→c) by this
definition.