
Keypress Recording
Keypress recording gives you the capability to capture which key a participant pressed and the exact moment of that key press, directly inside a Labvanced trial. You have the option to log each key press as a time-stamped data point, timed the same way Labvanced times every stimulus in the trial, so a response and the stimulus that triggered it share one timeline.
Table of Contents
How Keypress Recording Works in Labvanced
You can bind key press recording to any trial frame and decide exactly which keys matter to your study: a single key, a broader category, or every key on the keyboard, with the option to go as granular as a study needs, right down to telling apart the left and right position of a given key.
What Gets Recorded
A key press response comes back as two pieces of data: which key the participant pressed, and how long after the trial began they pressed it. You also have the option to capture both the press and the release of the same key, which lets you measure how long it was held down, useful for paradigms that care about dwell time, not just the response itself.
Common Use Cases
Response-Key Paradigms
Key press recording is the standard response channel for a wide range of paradigms: lexical decision tasks, go/no-go tasks, and any response-key mapping (for example, pressing F for one category and J for another).
Typing Studies
It also applies to typing studies, where every individual key press matters, not just the final submitted text. The same capture runs underneath more open-ended interactions too. Labvanced's in-trial text editing demo, built primarily to show mouse and click behavior on the same page (see Mouse Tracking), involves live key press capture as a participant types, alongside the clicks and cursor movement already described there.
A Related Capability: Mouse Tracking
Key press and cursor data are frequently captured together in the same trial, response-key tasks often also track hovers or clicks, and free-text entry combines typing with cursor movement. See Mouse Tracking for Labvanced's cursor- and click-recording capability.
Timing Precision
Key press timing is based on the same peer-reviewed methods for precise timing in web environments that Labvanced uses for every stimulus-locked measurement across the platform. See Timing Precision for the full methodology.
Setting It Up in Labvanced
You have the capacity to set up key press recording with just an event trigger and a variable, no code required. For the full step-by-step, see the Events guide in the Labvanced documentation.
Frequently Asked Questions
Does key press recording work with any key?
Can I use key press recording for typing tasks?
Can I record how long a key was held down?
Does this capture the characters someone types, or just key presses?
Further Reading
Mouse Tracking
Track cursor movement, hovers, and clicks alongside keypress responses.
Timing Precision
The timing methodology behind every reaction-time measurement in Labvanced.
Code-Free Study Building
Wire up triggers, actions, and variables without writing a line of code.