I've been looking for a good one for years. The only ones I ever found that were any good actually /came/ with serial keys, which isn't exactly what I was looking for. For a few years I used a text file, but now I'm using
AceText, a $40 Shareware program for clipboard and text snippet management. That's probably a steep price for license key management, but I bought it primarily for other things, and it just happens to be great for this too.
I had planned to write my own serial key manager for years too, probably in Java or something, but now that I don't need one, I don't really have the motivation to do it.
Edit: Attached is an AceText screenshot of my license keys (with the licenses blurred out ;)). I need only double-click a title and the appropriate license key is copied to my clipboard. AceText also supports encryption.