add_key function

Combine 2 keys with base key taking precedence