Would it be nice to be able to sell these keys to make a little cash and reduce clutter in your inventory? Or is this a dumb idea?
I would implement this differently. Because these locations can only be visited once, I would offer the keys as a "bonus" upon completion of the location. Here's what I mean:
You finish the Fire Temple, but you've got two leftover keys. You didn't find the rooms they go to, so you likely miss out on some treasure. At the exit, a new adventurer to the location says, "hey, would you sell me your keys to this place?" and so you do. You do not get an option, you just get bonus money/loot for having them with you by the end of the dungeon.
In this way, a player could choose to ignore extra content in these locations in order for a boon of a different kind. I'd likely offer two sets of useful equipment. Especially since you are sacrificing one set of it for the other.
Maybe I missed out on the room with 10,000 Gold Pieces in it, but the key itself is worth 7,000 Gold pieces. Maybe I missed out on the Infinity +1 Sword, but maybe I get 3 copies of the Slightly Less Than Infinity Sword in exchange for the keys. Maybe I missed out on the Ruby Ring of Elemental Immunity, but I get the Emerald Ring of Status Immunity from turning the key in to the adventurer instead.
That's how I would handle it. I wouldn't make it optional. For two reasons:
1. The player has the potential of accidently selling keys they need in order to complete the location if they can sell them to any random shop.
2. Items you can never use again in your inventory are pointless clutter. If a player comes back to your game months later, they may not remember that "Red Keys" were used 3 dungeons back, and might be confused on if these are still needed or not (unless your game is strictly linear). An event which removes these from your inventory upon completion of a one-time visited location cuts out that clutter immediately and saves possible confusion later on.