Sure you can, but without the key you won't be able to get back into the room. As someone else notes, room “keys” are mostly a magnetic strip card but the function is still the same- to unlock the door. Not a good idea. In most cases, when you get to front desk, they will ask you to bring the key.