Back

On-screen keyboards: real keylogger protection or a rudiment?

Sviatoslav Nytka
Sviatoslav NytkaSenior Product Designer at TechMagic
TLDR: On-screen keyboards were built to defeat keystroke loggers by letting users click characters instead of typing them. Modern malware walks right past them with screen capture and form grabbing, and on a password manager the on-screen keyboard even gets in the way of autofill – the stronger defense.

Open the advanced options on some login screens and you'll still find a toggle: "Show on-screen keyboard". You click letters with your mouse instead of typing them, and the idea is that a keylogger recording your keystrokes captures nothing.

LastPass. “Show on-screen keyboard" offered under Advanced options.

It's a reasonable idea for the threat it was designed against, more than a decade ago. The question worth asking in 2026 is whether that threat is still the one we're defending against, or whether the control has quietly become a rudiment.

Victoria Shutenko
Victoria ShutenkoSecurity Engineer at TechMagic

The original threat model was specific: a software or hardware keylogger that records keystrokes on the machine. If you never press a physical key, the logger has nothing to record.

Keystroke logging is one way credentials get stolen and easy to bypass. Banking trojans added screen and mouse-region capture specifically to defeat on-screen keyboards – the Zeus family did exactly this years ago, taking a small screenshot around each click. If the attacker can see where you click, the on-screen keyboard buys you nothing.

Modern attacks rarely target keystrokes. Form-grabbing and man-in-the-browser malware capture passwords from fields or intercept submissions, regardless of how you enter them.

There's a second, more ironic problem on a product like a password manager: an on-screen keyboard pushes users toward typing passwords by hand. That discourages long, random, autofilled passwords – which is the actual protection a password manager exists to provide.

What actually protects credentials today

  1. Phishing-resistant MFA and passkeys. A passkey has no shared secret to log, screenshot, or grab. There is simply nothing for a keylogger to capture. This is the real successor to the on-screen keyboard's job.
  2. A password manager with autofill. Long random passwords filled by domain match resist both keyloggers and phishing far better than anything a user types (on-screen or not).

Bottom line

The on-screen keyboard isn't harmful, but it is largely a rudiment. It defends against a threat that modern malware routinely bypasses, while adding friction and, on a password manager, working against autofill. Real keylogger resistance today comes from passkeys, MFA, and password managers, not from virtual keyboards.