make nearby key replacements distance sensitive