KeySet more standard compliant
This version makes the KeySet not to index by kid any more as it is not required field nor unique on it's own, but in combination with the use field.
Optional parameter for use added for checking and fetching keys.