keylogging
noun
Recording the keys struck on a keyboard, typically without the knowledge or consent of the user, in order to monitor the user's activities or compromise the user's information.