The plastic casing of my old garage opener (model BIXLS2 from DiTEC) broke and I wanted to print something nice instead.
This is what I came up with. It clicks together and holds firmly. The hole attaches to both parts so it won't come apart while mounted on your keychain.
Print with a 0.2 layer height, the inbuilt supports can be broken away.