Secure Input, and why your key sounds go quiet

Updated

When a password field has focus, or Secure Keyboard Entry is on in a terminal, macOS stops passing key events to every app that watches the keyboard. A keyboard sound app such as Teclo then plays nothing until Secure Input ends.

1-day free trial · $4.99 once · up to 3 Macs · macOS 13+

Secure checkout, payments byStripe· 14-day refund, no questions asked

What Secure Input does

Apple’s technical note on it is direct: once any process turns on secure event input, macOS stops “passing keyboard events to any intercept process”, “whether that process is in the foreground or background”. An event tap, the way keyboard sound apps hear keys, is one of the intercept methods the note names.

Teclo’s tap is a listen-only tap on your login session, watching key presses, key releases and modifier keys, plus mouse buttons, scrolling and trackpad gestures. While Secure Input is on, the key events never reach it, so it has nothing to play. Nothing is wrong with Teclo or its Input Monitoring permission, and nothing needs restarting: the next key after Secure Input ends makes its sound again.

Apple’s note covers keyboard events only, so we expect Teclo’s mouse click and scroll sounds to keep playing while the keys are quiet (inferred from the note; we have not tested every app).

What turns it on

Where When
Password fields in Mac apps and on websites While the field has focus. Apple’s note says the standard password field turns Secure Input on “only when necessary”.
Terminal When Terminal, Secure Keyboard Entry is ticked: the whole Terminal window, until you untick it.
iTerm2 When iTerm2, Secure Keyboard Entry is ticked. iTerm2’s documentation warns it “may disable global hotkeys in other programs”.
Ghostty Its macos-auto-secure-input option turns Secure Input on “when it detects that a password prompt is being displayed”, such as sudo asking for your password.

Apple’s note also asks developers never to leave Secure Input on “for the life of the application”. An app that ignores that, or that crashes while a password field has focus, can leave it on after you have moved on. That is the case worth finding.

Find the app that holds it

In Terminal, this command prints a process number while any app has Secure Input on, and nothing when none does:

ioreg -l -w 0 | grep -o '"kCGSSessionSecureInputPID"=[0-9]*'

Then name the process with ps -p followed by that number. We checked both commands on macOS 27.0 by turning Secure Input on from a test program. The first printed a process number, and the second named it: a web browser that also had Secure Input on, not our test program. The command shows one holder at a time, so run it again after you deal with the first.

To release it, leave the password field, untick Secure Keyboard Entry in that terminal, or quit the app. Logging out releases it in every case.

What this means for a keyboard sound app

No app with Input Monitoring can hear keys during Secure Input; that is the point of it. Kachunk lists “Password fields are always silent, automatically” as a feature; for standard password fields, macOS’s Secure Input already does that for every keyboard sound app, Teclo included (our inference from Apple’s note). If your key sounds stop only in some places, Secure Input is the likely cause. If they stop everywhere, see keyboard sound app not working, and for the permission itself, Input Monitoring on a Mac. How Teclo’s tap compares with other ways of watching the keyboard is in is a keyboard sound app safe?.

Questions

Why do my keyboard sounds stop when I type a password?

Password fields turn on Secure Input while they have focus, and macOS then stops passing key events to apps that watch the keyboard. The sounds come back when you leave the field.

How do I turn off Secure Keyboard Entry in Terminal?

Open the Terminal menu and choose Secure Keyboard Entry. A checkmark next to it means it is on; choosing it again turns it off.

Do mouse clicks still make a sound during Secure Input?

Apple's note on Secure Input covers keyboard events only, so mouse click sounds should keep playing while key sounds stop.

Is Secure Input a problem I should fix?

No. It protects what you type in password fields. It is only worth hunting down when it stays on after you have left every password field.

Sources

Other facts on this page come from these pages, read on or before the date above.

Teclo

Launch price$4.99· $9.99 from 1 December

One-time · 1-day free trial · 14-day refundDownloadBuy · $4.99