Add edit-awareness to keypress listeners.
wip: integrate google distance matrix"