Before electric and battery operated door bells, this type was popular.  The turn key was mounted on the outside of the door and extended through the door to a bell on the inside.  When the key was turned, the bell would ring announcing visitors.