Added method to get a key with a value