What happens to a key of a fixed lock when the house is sold?

Kitab al-Buyu: Grain in Ears, House Keys, Transaction Costs and Delivery