In txtReplay, writing patterns such as typing speed, accuracy, and pasting are recorded to detect deviations from expected metrics. These statistics serve both informational purposes and as evidence of writing anomalies, with warning signs raised at keyframes for later review by the user.