pub fn key_sequence(text: &str, mode: InputMode, seed: u64) -> Vec<KeyStep>Expand description
Synthesize a key sequence for typing text.
Returns events in chronological order. Each character produces a
Down at the inter-key gap offset and a matching Up after a
short dwell. In Human mode, occasional typos (≈1.5%) insert a
wrong-character Down/Up, a Backspace Down/Up, then the
intended character.
InputMode::Human: lognormal gaps, word-boundary pauses, typos.InputMode::Careful: 50 ms fixed cadence, no typos.InputMode::Robotic: empty vec.
seed is the deterministic stream selector. Same seed + same
text produces bit-identical output.