Handle key and time during entity proto to entity conversion.