← Back to all articles Employee Monitoring

Keystroke Logging at Work

A keystroke logging setup checked against state notice rules, device ownership and what is captured

Keystroke logging is software that records what is typed on a computer. In employee monitoring it comes in two forms that share a name and little else. Keystroke counting records how many keys were pressed per minute, as an activity signal, and is a standard feature of most productivity monitoring tools. Keystroke content logging records the keys themselves, which means every password, every personal message and every search, and is the feature that gives the category its reputation. "Bossware", the term that entered general use during the pandemic, mostly means the second.

The checker below reads your setup against the state notice rules and the capture type. The rest of the page covers what each form records, the federal and state law, what employees think about it, and how to configure monitoring so that it is lawful and, separately, so that it is worth having.

Keystroke logging notice checker

A first look at the notice and consent rules, not legal advice. Federal law is the floor; the state where the employee works sets the rest, and content capture on personal devices is the combination most likely to be unlawful.

What it captures: counts versus content

Keystroke countsKeystroke content
What is storedNumber of key presses per interval, often with mouse activity, as an activity scoreThe characters typed, sometimes with the window and timestamp
What it can showWhether someone was typing, and roughly how muchWhat they wrote, including passwords, card numbers, medical and personal messages
What it cannot showWhat was typed, whether it was work, whether it was any goodWhether it was any good
Typical useIdle detection, activity reports, timesheet validationInvestigations, data loss prevention, covert surveillance
Data riskLowHigh: a store of credentials and personal data that must be secured and that a breach exposes
Common inMost productivity monitoring toolsSecurity and investigation tools; some monitoring products as an optional module

A third variant, keystroke dynamics, measures typing rhythm to identify or authenticate the user. It is a biometric under Illinois law and similar statutes, with its own consent rules, and is covered below. Our guides to what computer monitoring is and user activity monitoring place keystroke capture among the other things these tools collect, and the software comparison notes which products offer it.

The law: federal floor, state rules

Federally, the Electronic Communications Privacy Act, 18 U.S.C. 2511, prohibits intercepting electronic communications, with two exceptions employers rely on: consent, and the "ordinary course of business" use of the employer's own equipment. Keystroke logging on a company computer with notice and a policy generally falls inside the exceptions; keystroke logging without notice, or on a personal device, or of personal accounts, has produced findings of liability, and a small number of criminal prosecutions where the logging was covert. Penalties under the statute run to $250,000 in fines and five years' imprisonment for wilful violations, plus civil damages.

States add notice requirements and consent rules.

The state-by-state monitoring law guide has the full picture, and the policy template and consent form are the documents the notice rules require.

What employees think, and what it does to them

Pew Research Center asked US adults in 2023 about specific monitoring practices. Fifty-one per cent opposed employers recording what workers do on their computers, and 61 per cent opposed tracking workers' movements; recording keystrokes was not asked separately but sits inside the first figure at its most intrusive end. The site's monitoring statistics page collects the surveys that have asked since; the pattern is consistent, with opposition strongest among the youngest workers.

The behavioural effect is the practical problem. A keystroke count that feeds an activity score rewards typing, and people who are scored on typing type: the mouse-jiggler and the keyboard-tapping script are the products of exactly this measurement. Thinking, reading, a phone call with a customer and a whiteboard session all score zero. A tool that measures activity has to be configured so that the activity is not the target, which usually means the counts are used for idle detection and nothing else, and the line on what is never tracked is written down before the tool is installed.

Configuring it so that it is lawful and useful

  1. Decide the question first. If it is "are hours accurate", counts plus idle detection answer it. If it is "who leaked the file", that is an investigation with its own process and a security tool, not a workforce-wide keylogger.
  2. Counts, not content. Switch content capture off at the account level and confirm in writing with the vendor that it is off and cannot be enabled by a manager.
  3. Company devices only. No agents on personal phones or laptops. Where staff use their own devices, monitoring stops at the company account boundary.
  4. Exclude what should never be captured. Password fields, personal email and banking sites, health portals, and the lunch break. Most tools support exclusion lists; a tool that does not is the wrong tool.
  5. Give notice properly. Written, at hire, acknowledged, posted, and specific about what is captured, who can see it, how long it is kept and what decisions it may inform. This is the law in three states and the defence everywhere.
  6. Restrict access and retention. Named viewers, a short retention period, deletion on schedule, and a log of who looked at what.
  7. Never use it as the sole basis for a decision. An activity score is a prompt for a conversation. The ethical monitoring playbook sets out the process around it.

Configured this way, keystroke data is a modest signal that a timesheet is roughly right. Configured the other way, it is a store of every password in the company, collected without consent in states that require it, feeding a score that rewards the wrong thing. The difference is settings, and the settings are decided before installation or not at all.

Key takeaways

Frequently asked questions

Is keystroke logging legal in the United States?

On company-owned devices, with notice and a legitimate business purpose, generally yes under federal law. New York, Connecticut and Delaware require written notice by statute, all-party consent states raise the risk of capturing message content in real time, and Illinois requires written consent for typing-rhythm biometrics. Covert logging, logging on personal devices and capture of personal accounts have produced civil and, occasionally, criminal liability.

Can my employer see what I type?

If the employer has installed keystroke content logging on a company device, yes, including passwords and personal messages typed on it, subject to any exclusions the tool applies. Most productivity monitoring tools record keystroke counts rather than content. In New York, Connecticut and Delaware the employer must have told you in writing; elsewhere the policy should say what is captured.

What is the difference between keystroke logging and keystroke counting?

Counting records the number of key presses per interval as an activity measure and is common in monitoring tools. Logging records the characters typed, which captures credentials and personal content. Counting carries low data risk and little legal exposure with notice; content logging carries both.

Do employers have to tell employees about keystroke logging?

By statute in New York (written notice at hire, acknowledged and posted), Connecticut (written notice of the types of monitoring, posted, with additional requirements from October 2026) and Delaware (acknowledged notice or daily electronic notice). Everywhere else, notice is the practical basis for the consent and business-use defences under federal law, and covert logging removes it.

Is keystroke logging a biometric?

Keystroke content and counts are not. Keystroke dynamics, the measurement of typing rhythm to identify or authenticate a person, is a biometric identifier under the Illinois Biometric Information Privacy Act and similar laws in Texas and Washington, which require written consent and a retention policy before collection.

Does keystroke logging improve productivity?

Not on the evidence. Keystroke counts measure typing, and people scored on typing produce typing; reading, thinking and conversations score zero. Used for idle detection alongside output measures it is a minor validation signal. Used as a productivity score it distorts behaviour and, in surveys, damages trust.

← Back to all articles