Interesting game! If I'm reading the code right, the distance between two letters is the straight-line distance between the centres of those two keys on the on-screen keyboard? It might be good to make that explicit; I think the phrase 'a few keys away from' in the instructions had me expecting something different, like how many up/down/left/right steps it would take to get from one key to the other.