Make key property read-only.