Xwintrack
Track key and mouse input to X windows
A Linux python3 Xwindow tracking tool.
Keytracker, mousetracker, movement tracker
Allows tracking of keys, mouse buttons and mouse position
in a selected X window or globally.
It performs no logging of its own, it tracks and reports what is occurring,
allowing the programmer to do want they will with the information.
Key tracking / logging
Mouse tracking / logging
Hot keys
Hot mouse buttons / keys
Many xdotool function replacement commands