Most hotels use electronic key cards to open the room doors and anyone with a key card assigned to that room can use it to get inside. But most rooms also have deadbolts or latches on the inside that guests can use to ensure the door is locked to everyone, including anyone with a key card.