A lock is a device that prevents access by those without a key or combination, generally by preventing one or more latches from being operated.
Often accompanied by an escutcheon. Some doors, particularly older ones, will have a keyhole accompanying the lock.