Screen recorder

How’s everyone’s day going?

I’m wondering what is the best (preferably free) program that records every keystroke, mouse movement, and other programs’ on-screen activities. I also need the outputed video to be in either wmv, avi, mpeg, or mpg format.

I searched in, but could not find one.

Anyone know of some type of program like this?
Thanks for all the help!