Fire ladders might not reach higher. One problem firefighters have when a high-rise hotel catches fire is finding the occupants. If you are trapped in your room, put shaving cream or soap on the window, then draw the curtain. Leave your key next to your bed so that if you must leave your room during an emergency alarm, you can bring the key with you to regain access. After such an alarm, the front desk will be busy verifying occupants with limited night staff.
Electronic keys are the most secure.
The codes are changed after each traveler, and also leave details of all entry. Carry a rubber doorstop in your suitcase next time you travel. Putting it behind the door will deter someone from entering your room. Many incidents at hotels happen in the parking garage. Ask for an escort.