You can buy them on many websites on the internet. Just Google "keyloggers".
As for justifiable uses, there are lots.
In my office, we had a security guard that was spending hours on his nightshift looking at p0rn on computers that had to be 24-7. Yes, we had sophisticated website blockers and other technical stuff on the servers that could have stopped him and recorded the activity, but we found it much easier to plug a forty quid keylogger in place instead. The keylogger is invisible in "My Computer" until a special password is entered after which the data can be downloaded to a USB key. The security guard was confronted with the evidence and promptly sacked.
All the same, I do appreciate that they can be a curse if used incorrectly. I know someone who uses one to monitor his children's internet usage - these keys can store around a year of keystrokes. The ethics of this are debatable.