How a person types can reveal the state of their brain, according to a study that tracked keystrokes when the typist was alert or groggy. Cynthia Graber reports