read/write convenience functions for Key types