The keys in Legend of Zelda, unlike the other Zeldas, are universal. You can buy them in shops scattered through Hyrule, or you can simply find them in a dungeon by killing an enemy or solving a puzzle. Unless you get the Lion key, this is how you can get by the harder dungeons, even though you get the Lion key very late into the game.