Not really a keygen. A keygen will get the algorithm used to verify the key, reverse it, and use that reversal to generate the key.
You could also do a 'self keygen' which will show you what the program's key is upon running it.
This is using keys you know of and randomly picking one. If you used this for a real 'keygen' those keys would be blacklisted probably quickly.