A keystroke logger is a program that captures every key stroke on a keyboard and creates a record of what has been typed. By using such device hackers can steal your passwords and other confidential information. Some companies also use this tool to track the computer use of their employees.