Controlling the door lock with a keypad