Another way to say "a key can open a locked door" is "You can unlock a door with a key."