Skip to Content
Platform.Ontology

Keystroke dynamics

Records key press and release times to build a typing rhythm profile.

Used to track youSpeed and timingBehavioral biometricsWeb browsersWhile you use it

In one line

Can time your key presses to learn your typing rhythm

Records key press and release times to build a typing rhythm profile.

Dwell times (key held) and flight times (between keys) for password and free text identify people with 1 to 5% error. Persists across devices and accounts, used for continuous authentication and fraud.

What it can and can't do

What the user does: You type in a box on the page

It can

  • Time how long you hold each key
  • Time the gap between keys
  • Build a typing profile that picks you out with about 1 to 5% error
  • Match the same person on other devices or accounts

It cannot

  • Work if you paste text instead of typing it
  • Ask permission first
  • See what you type in other tabs or apps
  • Be switched off by clearing cookies

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported12008-12-11None
EdgeSupported792020-01-15None
FirefoxSupported12004-11-09None
SafariSupported12003-06-23None
Safari on iPhoneSupported12007-06-29None
Chrome on AndroidSupported1Not listedNone
Samsung InternetSupported5.02016-12-15None

How a site asks for it

APIkeydown/keyup events with event.timeStamp; InputEvent
How access is grantednone
What the user seesNot listed
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Listen to keydown and keyup on fields
  2. Record timestamps per key class
  3. Compute dwell and digraph latencies
  4. Compare with enrolled profile

Data you get

What comes back: Timestamps at 0.1 to 1 ms
Shape: list

FieldTypeUnitRangePrecision
dwellfloatms40 to 250timer resolution (0.1 to 1 ms)
flightfloatms-100 to 600same

Technical limits

  • Cannot read keys outside the page or in other iframes
  • Password fields still emit events to the page

The story

What it is

A script records when each key goes down and up, to build a profile of your typing rhythm.

For you

You never see it. Everyone types with their own rhythm, like a signature. A page that can see key timing can learn yours and later tell if it is you or someone else typing.

For makers

Banks and fraud teams use typing rhythm as a quiet second check that you are really you. Some sites use it to spot bots that type too evenly. Critics point out it is also tracking of a body trait.

Where you see it

TypeExampleApps
bankingA bank compares how you type your password with your usual rhythm, and asks for more proof if it looks different.None named
securityA bot detector sees login typing that is too even and fast, and blocks it as a script.HUMAN, DataDome
educationAn online exam service checks that the same person who started the course is the one typing the test.Coursera
enterpriseA company portal uses typing rhythm as a hidden second factor for staff accounts.None named
socialA social site spots a bot farm because all fake accounts type with the same machine like pattern.None named
gamesA browser game with chat checks for macro or script input that types perfect timing.None named
adsA tracker could link two visits by typing style, which is why privacy groups raise concerns.None named

Risks

  • Typing style is personal
  • Hard to notice or avoid
  • Can be used for tracking

Good uses and abuse

Legitimate uses

  • Fraud detection, account takeover defense, typing tests

Known abuse

  • Cross-device identity tracking and profiling, user re-identification

Scores

ScoreValueMeaning
Sensitivity3 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits4Rough identifying entropy, when known

History

  • 2013-01, paper: Monrose and Rubin keystroke authentication line of work; Killourhy and Maxion 2009 benchmark

Sources

How well checked: Based on official documentation.

On this page