I am working on small desktop app using electronjs for my computer to track the keypress event and log it some where in txt file but I am unable to get the key press event. As I want to log the key at global level whether this desktop app active or minimize it should track the key if I press any key on keyboard.
Can any one help me with this ?