Keys work on specific doors. However, they also work automatically. That is, 'unlock ' will unlock it if you have the appropriate key on you. You do not, and cannot, 'unlock door with brass key'.