How do I upload code to my R3 Mega's 16u2 to make it appear as a HID keyboard?

I've searching the web for info on how to upload code on a Windows7 operating system to a Mega's 8u2/16u2 to have the mega appear as a HID keyboard.
Also I have this which I think can be used as a an ISP.
Also I have yet to find instructions on how to do this that I understand, which is why I'm here asking for help...

This should get you started