Add helper functions to Key object