I think the best thing for scripting key bindings would be to make each configuration unique to each server. This will avoid duplicates and especially not knowing which key to change if there are duplicates.
The goal would be to only display the keys specific to the server when we are connected on it.