Swap
← Research library

Input reliability · November 22, 2026

When a thumb lifting over the space bar typed random letters

A slide that ended on the space bar could be written as every key the thumb had crossed. The cause was timing, the tests could not see it, and fixing it led to a second question: what does a thumb mean when it travels on after the word?

What was reported

After a day of typing on the project's test phone came this report: sometimes the keyboard types random letters, and it seems to happen when a thumb slides over the space bar and lifts. The observation was right. A slide meant as "then" could come out as "tyhgfrerfghbn", which is every key the thumb passed on its way.

Three separate faults were behind it. All three had been in the keyboard since its first version; none came from recent changes.

First, when a sliding thumb lifted anywhere on the space bar, Space was pressed in the same instant. Reading a slide starts at the lift, so the word did not exist yet. The keyboard waited 40 milliseconds, then wrote the raw keys for good and threw the real answer away when it arrived.

Second, a slide that merely ended a little low was treated as a deliberate Space. With the other thumb still typing, that cut the word in two, and the person's own Space afterwards became a full stop.

Third, a press on the space bar that rolled a few points up into the letter row was read as a letter: "hi" and Space gave "hib".

How often does a slide end on the space bar?

Nobody has to aim for it. In 21,246 recorded public swipes, 224 end just inside the space bar, about one in a hundred. Of those, 186 end below N and most of the rest below M. Half are 6 points low or less; the deepest is 40 points.

So the fault needed two ordinary things to coincide: a word ending on the bottom row, and a phone that took longer than 40 milliseconds to read it.

Why every test passed

Every automated check waited for the recognizer to finish before doing the next thing, and the development Mac reads a word in a few milliseconds. A race that needs a slow answer cannot show on a fast machine that is also given all the time it wants.

One earlier check did press Space in the same instant as a lift. It passed because the Mac always answered inside the 40 milliseconds. And no test ended a slide anywhere except exactly on its last letter.

Before, Space was pressed at the lift and the crossed keys were written after 40 ms. Now Space waits for the word, and an answer that arrives late repairs what was written.
Before, Space was pressed at the lift and the crossed keys were written after 40 ms. Now Space waits for the word, and an answer that arrives late repairs what was written. View full size

What changed in the keyboard

Space, Return and punctuation pressed while a slide is still being read now wait for the word and are then pressed in order.

If the next word starts before the answer has come, the crossed keys stand in the text for a moment and are replaced when the answer arrives. Whatever was typed after them stays as it is. The keyboard checks that the text is still what it wrote before changing it; if the person has edited it, it is left alone.

A slide that ends on the space bar is an ordinary word and gets the ordinary automatic space. A thumb that leaves over the space bar while the other thumb is still typing ends nothing.

A press that starts on a command key and lifts within 0.4 of a row of it, without drawing across keys, is that key.

When the thumb travels on after the word

Looking at slides that end off the letters showed a second weakness. Some people finish a word by sliding on to the space bar, or their thumb runs on to Delete or Return. The keys under that trip were being read as letters: "to" followed by a trip down to Space read as "took".

The keyboard now finds where such a trip began, at the thumb's last turn or pause, and lets the word end there. How sure it is depends on how far off the letters the thumb went. A lift less than about a third of a key off the letters is treated as an overshoot and keeps its last letter in full, so "then" ending a little low does not become "the". From there on the last key under the trip counts for less and less.

The measurement took 3,000 recorded public swipes and added a straight trip from the end of each to one of five places. The trips are constructed; the swipes are real. The first guess was right 77% of the time for a trip to the middle of the space bar before the change and 92% after, which is the same as with no trip at all.

First guess right on 3,000 recorded swipes with a constructed trip to each place, before and after the change. Without any trip the figure is 91.6%.
First guess right on 3,000 recorded swipes with a constructed trip to each place, before and after the change. Without any trip the figure is 91.6%. View full size
Thumb liftedBeforeAfter
On the last letter91.6%91.6%
Just inside Space77.9%89.7%
Middle of Space77.4%91.8%
Deep in Space77.5%92.0%
On Delete53.4%91.7%
On Return50.8%91.6%

What the change did not cost

A first version treated any lift a quarter of a key off the letters as a trip. It read eight recorded swipes short: "then" as "the", "them" as "the", "an" as "as". These were overshoots, and from the path alone an overshoot and a short trip are the same line.

The version that was kept grades the reading by depth instead. On the recorded case sets it changes nothing: 9,212 of 10,000 single swipes, 2,224 of 2,526 two-finger words and 5,515 of 6,000 development swipes are first guesses before and after, and everyday sentences go from 5,684 to 5,685 of 5,991 words.

A lift above the top row is never treated as a trip. There is nothing above the keys to travel to, and recorded swipes that end high are overshoots.

A test that reads late on purpose

The new ending audit plays each gesture more than once inside the real keyboard: with the recognizer answering at once, with it held back 70 milliseconds, and with it held back until after the next touch has landed. All versions must write the same text.

Each word is lifted on its last letter, just inside the space bar, in the middle of it, on Delete, on Return and above the keys; followed by nothing, a Space or a comma; with automatic spaces on and off; at two keyboard widths; and with one thumb leaving over the space bar while the other types.

Run against the keyboard as it was, the first version of the audit failed 216 of its 276 checks. The keyboard as changed passes all 1,028 checks of the grown audit (1,040 after the checks of the next section), which is part of the complete self-test of more than 16,000 checks.

The ending audit on the earlier keyboard and on the changed one. The audit grew from 276 to 1,028 checks between the two runs.
The ending audit on the earlier keyboard and on the changed one. The audit grew from 276 to 1,028 checks between the two runs. View full size

A second report: automatic spaces that stopped

The same day brought a second report: sometimes the automatic space after a word stops arriving, with no visible reason. Nothing on the phone could be inspected, so every place in the code that can withhold a space was read. Four of them gave no sign.

The kind of text field. The keyboard treated a field as writing only if its app had left autocorrection on and it was not a browser address bar. Many chat boxes, search boxes and web forms switch autocorrection off. That asks a keyboard not to change what was typed; it does not say the field holds a single word. Now one-token fields (a web or email address, a number, a user name, a one-time code, a password) get no automatic spaces, and search fields, address bars and fields that ask for sentence capitals do. Where autocorrection is off, taps are written exactly as typed.

A hand resting on the edge. A touch resting still beside or below the keys counted as a gesture in progress, and no space was added while it stayed. A still touch on the margin no longer counts.

A lift that never arrives. If the system never reports the end of a touch, the keyboard believed a thumb was still down until it was next closed. It now retires touches the system has stopped reporting.

Apps that hide or delay their text. Some apps show a keyboard none of the text before the cursor, and some are briefly behind. In the first case no space was ever added; in the second a space that fell due at the wrong instant was dropped. The first is now trusted and the second retried for a little over half a second.

So that the cause is visible next time, the space bar now reads "space" instead of the keyboard's name wherever words do not get their spaces automatically. Which of the four the reporter met is not known. Twelve checks were added to the ending audit, and two of them were confirmed to fail with the fixes switched off.

What is shown and what is not

Shown on a Mac, in the iPhone simulator and on recorded touches: the three faults are reproduced by the audit on the earlier code and gone on the new code; trips to Space, Delete and Return read as well as plain endings; recorded results did not fall.

Not measured: how long the phone itself takes to read a word. The repair of late answers was built so that the written text no longer depends on that time, but the time has still not been measured on a phone.

Not resolved: a trip that stops only just inside the space bar reads right 90% of the time against 92% for a deeper one, because at that depth it cannot be told from an overshoot.

Swap 1.0 build 3, first submitted for review on November 22, was built before all of these changes. It was never released. Build 4 took its place the same day and contains them: it is version 1.0 (4) on the App Store.

Sources

  • Swap project study — Lifts off the letters and late answers (November 22, 2026)

← Browse all research