Have you ever looked into Macro Recorder?
https://www.macrorecorder.com/
It allows you to record keystrokes and then edit them after to cut out anything you'd like, stuff like the timings between keystrokes and accidental keys.
It allows you to record keystrokes and then edit them after to cut out anything you'd like, stuff like the timings between keystrokes and accidental keys.