Keylogger

Keylogger refers to a piece of software or hardware that records the keys hit on a keyboard. This is usually done without the user knowing their key strokes are being recorded.

See malware.