If you will be running X (and Cygwin supports, but does not require that), then the xorg backend (meaning: not the Windows one) with pynput (note, that package has no "i" in its name) may achieve your goal.
Regards - Eliot Moss -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple