Keylogging is when keystrokes are surreptitiously recorded by an unauthorized third party.

This is a common payload in malware because it is an effective way to steal usernames, passwords, credit card details and other sensitive data.