Makes the key field unique and catches errors when users try to add a key that's already been added.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>