I've seen keyrings in games before (can't remember where) and they're the goddamn best. So convenient. So simple to implement..
The first use of a keyring that I can personally remember is from Ultima VII (which doesn't mean there aren't even older examples I may not be aware of) and that's a computer game from 1992.
Countless others used the same mechanic or something equivalent after.