When buying a house, be sure to change the locks immediately. There is no telling how many people had access to the previous owner’s keys. When renting, be sure to ask about the landlord’s key-control policies.