Quick answer
- Keystroke logging records what a person types on a computer: messages, search terms, documents and, unless masked, passwords. Keystroke counting only tallies key presses.
- No federal law bans it on company devices, but New York, Connecticut and Delaware require advance notice, and reading a personal account with a captured password can break the Stored Communications Act.
- A keystroke log is one of the most sensitive data sets a company can hold. For hours and attendance, a time clock gives you the answer with far less risk.
Keystroke logging is the recording of every key a person presses on a computer, usually by software installed on a company-managed device, sometimes by a small hardware device. The log shows what was typed, in which app or window, and when. Employers use it for security investigations, regulated-industry compliance and, more controversially, productivity scoring. It is the most invasive common feature in employee monitoring software, because typing includes everything from customer notes to a message to a doctor.
This article is part of our hub on employee monitoring features, inside the wider employee monitoring guide. It covers how keyloggers work, what a real log contains, the US law that applies and the safer options most businesses should choose first.
What keystroke logging is and why employers use it
A keylogger sits between the keyboard and the programs that receive input. Software keyloggers hook into the operating system and copy each keystroke as it passes, then send batches to a dashboard. The better business tools tag each entry with the user, application, window title and timestamp, so an administrator can search for a word or a customer number.
Employers who switch it on usually give one of four reasons:
- Security investigations. Reconstructing what happened after a suspected data leak or fraud. Security teams often pair it with suspicious activity monitoring that flags keywords such as “confidential” or a client list file name.
- Regulated record-keeping. Some financial and healthcare roles must keep records of communications, though most firms meet those duties by archiving email and chat directly, not by logging keystrokes.
- Insider threat programs. Larger organizations sometimes log typing on privileged accounts, such as database administrators, rather than on everyone.
- Productivity scoring. Typing volume feeds “active time” and idle scores. This is the weakest reason, because typing is a poor stand-in for work.
Keystroke logging, keystroke counting and hardware keyloggers
Vendors use “keystroke monitoring” for very different things. Ask which one a product does before you buy or install it.
| Method | What it records | Typical use | Risk level |
|---|---|---|---|
| Keystroke counting | Number of key presses per minute or hour, no characters | Activity and idle scores | Lower; still misreads calls and reading as inactivity |
| Content keystroke logging | Every character typed, with app, window and time | Investigations, keyword alerts | High; captures passwords, health and personal details |
| Keyword-triggered logging | Text around a flagged word or pattern, such as a card number | Data loss prevention | Medium to high, depending on the rules |
| Hardware keylogger | All keystrokes stored on a plug-in device between keyboard and computer | Mostly misuse and attacks | Very high; hard to govern and easy to abuse |
Counting is what most “productivity” dashboards actually use, and it is closely tied to idle time tracking. Content logging is a different category: it turns your monitoring tool into a store of everything employees write.
What one hour of a keystroke log holds
Picture an office manager at a 25-person dental practice, typing on a company laptop from 9:00 to 10:00 a.m. A content keylogger would capture something like this:
- Patient names and appointment notes typed into the practice management system.
- A reply to a vendor about an invoice, including the practice’s bank routing details.
- A search for “FMLA leave for parent surgery” in the browser.
- A short message to a spouse about a child’s pediatrician visit.
- The login to the payroll portal, and, if she checks it on her break, her personal email password.
None of that answers the question a practice owner usually cares about: did she work her scheduled hours, and was the front desk covered? What it does create is a file containing health information, financial account data, a hint about a family medical leave request and personal credentials. That file now has to be secured, access-controlled and eventually deleted. If a manager reads the FMLA search and treats her differently, the log becomes evidence in a leave interference claim.
Broader user activity monitoring tools often bundle keystroke logging with app, website and screenshot capture, so the same problem multiplies across data types.
What US law says about keystroke logging
There is no federal statute written for keyloggers. Instead, courts apply older electronic privacy laws, mostly the Electronic Communications Privacy Act, and the results depend on how the logger works and what the employer did with the data. Our hub on employee monitoring laws covers the full framework; here is how it applies to typing.
The federal Wiretap Act: usually not triggered
The Wiretap Act prohibits intentionally intercepting an electronic communication. In United States v. Ropp, 347 F. Supp. 2d 831 (C.D. Cal. 2004), a federal court dismissed charges against a man who had attached a hardware keylogger to a coworker’s computer, holding that keystrokes traveling from keyboard to computer were not transmitted by a system affecting interstate commerce. In Rene v. G.F. Fishers, Inc., 817 F. Supp. 2d 1090 (S.D. Ind. 2011), an employer’s software keylogger captured an employee’s personal email and bank passwords; the court dismissed the federal Wiretap Act claim, as summarized by the Harvard Journal of Law & Technology. Not every court agrees: in Potter v. Havlicek, a federal district court in Ohio (S.D. Ohio) said Ropp read the interstate commerce element too narrowly, and that keystrokes on a networked computer may meet it. Treat “keyloggers are fine under federal law” as an unsettled position, not a safe harbor.
The Stored Communications Act: where employers get caught
The same Rene case shows the real exposure. Capturing the password was one thing; the court allowed the Stored Communications Act claim to go forward because the employer allegedly used the captured password to read the employee’s personal email. Logging into a personal account with credentials pulled from a keystroke log is the clearest way to turn monitoring into a federal claim.
State wiretap laws can be stricter
In Rene, the Indiana Wiretap Act claim also survived, because the court found the Indiana definitions were not identical to the federal ones. Courts in other states have gone both ways. If you operate in more than one state, assume the strictest one sets your rules and check our guide to employee monitoring laws by state.
Notice laws: New York, Connecticut and Delaware
- New York Civil Rights Law § 52-c, in effect since May 7, 2022, requires employers that monitor phone, email or internet access or usage to give written notice at hiring, get an acknowledgment and post a notice. The Attorney General enforces it, with civil penalties of up to $500 for a first violation, $1,000 for a second and $3,000 for each one after that (New York State Senate).
- Connecticut requires prior written notice of electronic monitoring, with a narrow exception for investigations based on reasonable grounds.
- Delaware requires notice before monitoring email, phone or internet use, either a one-time written or electronic notice the employee acknowledges, or an electronic notice at least once on each day the employee uses the employer’s email or internet service (19 Del. C. § 705).
Our electronic monitoring notice guide includes language that names keystroke logging specifically.
California and employee data
Since January 1, 2023, the California Consumer Privacy Act covers employee personal information. Its definition of sensitive personal information includes account log-ins combined with a password, which is exactly what a content keylogger can collect. California employers need a notice at collection and a retention period for keystroke data.
Labor law
Logging that captures union organizing messages can raise issues under the National Labor Relations Act. The NLRB General Counsel’s 2022 memo on electronic monitoring (GC 23-02) was rescinded in February 2025 (NLRB, GC 25-05), but the underlying rule against surveillance of protected concerted activity still applies.
The data risk you take on
Legal claims are only half the cost. A keystroke log is a high-value target: it can hold passwords for payroll, banking and vendor portals in one searchable place. Questions to answer before switching it on:
- Who can read the logs? If a supervisor can search a direct report’s typing, you have created a harassment and retaliation risk.
- Are password fields masked? Ask the vendor in writing and test it.
- Where is the data stored, and for how long? Every month of retained logs is more data to protect and disclose in litigation.
- What happens in a breach? State breach notification laws can apply when log-ins and account numbers are exposed.
There is also a trust cost. Employees who know every word is recorded tend to move conversations to personal phones, which hides exactly what a security program wants to see.
If you decide to use keystroke logging
Some employers have a genuine need, usually tied to security. If you are one of them, narrow it as far as you can:
- Limit the scope. Log privileged accounts or specific high-risk systems, not every employee on every app.
- Prefer counts or keyword triggers over full content capture where they meet the goal.
- Company devices only. Never install a keylogger on a personal phone or laptop.
- Write it down. Name keystroke logging in your monitoring policy, explain the purpose and get a signed acknowledgment.
- Never use captured credentials to access an employee’s personal accounts.
- Set a short retention period and restrict access to a small security team with an audit trail.
- Keep it out of pay decisions. Typing volume should never edit an hourly employee’s timesheet.
For web activity, which raises a different set of questions, see our article on monitoring internet activity. For security-led programs, the hub on insider threat detection explains how keystroke data fits with access controls and data loss prevention.
What most employers need instead
Most US small businesses look at keystroke logging because they want to know whether people are working their hours. That question has a simpler answer:
- Hours: a time clock employees use themselves on a phone or a shared tablet, with breaks recorded and overtime flagged before it happens.
- Location for off-site work: GPS and geofencing at clock-in, not continuous tracking.
- Attendance patterns: late arrivals, missed punches and no-shows in a weekly report, which also addresses time theft openly.
- Output: measures that fit the job, such as tickets closed, orders shipped or visits completed.
That is the approach Workzenly takes. It tracks clock-ins, breaks, overtime and attendance, with location checked at the punch, and builds timesheets that flow into payroll. It does not log keystrokes, take screenshots, track websites or apps, read email or run hidden.
Frequently asked questions
Is keystroke logging legal for employers in the US?
On a company-owned device with a written policy, keystroke logging is generally allowed, and no federal law bans it outright. The risk sits in the details: New York, Connecticut and Delaware require advance notice, state wiretap laws can be stricter than federal law, and using a captured password to open an employee's personal account can violate the Stored Communications Act.
What is the difference between keystroke logging and keystroke counting?
Keystroke counting records how many keys were pressed in a period, without the characters, and feeds activity or idle scores. Keystroke logging records the actual characters typed, often with the app, window and time. Content logging captures passwords, messages and personal details, so it carries far more legal and security risk than a simple count.
Can an employer see my passwords with a keylogger?
A content keylogger records whatever is typed, so passwords entered on the monitored computer can end up in the log unless the tool masks password fields. Many business tools say they skip password fields, but check the policy. Logging into personal email or banking on a work computer is the main way personal credentials end up in an employer's records.
Does keystroke logging work on personal phones or BYOD devices?
Business keystroke loggers are installed on computers the company manages. On a personal phone, an employer usually controls only a work profile or managed apps through mobile device management, not the keyboard of the whole device. Installing a keylogger on a personal device without clear consent is a serious legal risk and should be avoided.
How can I tell if a keylogger is installed on my work computer?
Start with your employee handbook or monitoring notice, which should name the tools in states that require notice. You can also look for monitoring agents in the list of installed programs or running processes, and for a small device between the keyboard cable and the computer. When unsure, ask IT or HR directly what is recorded.
Book a demo