Yeah, keyloggers can certainly be used for illicit activity. But they can be used for good too (writing a customized KeyHistory function, for building an on-the-fly macro recorder, for building an on-screen keyboard, etc).