returns a the given value for a `key` param