Another way to say "keys are used to unlock doors" is "Many doors need keys to open them, if they are locked."