Go back to using threading.Timer for logging keystroke counts