Add an helper function for the Key object