In a university project during the summer and in association with a keyboard maker, I have to create a study. This study should count the average number of key stroke and words that a normal user would type every day on his computer. Every week we will give a different keyboard to all users. (there are 100 users that will use their computer with the given keyboards during 2 months).
In order to achieve this study I need to create a program. This program will be installed on the computer of the 100 users. This program will be written in Java and should listen to the key strokes and save every single key stroke in an encrypted file. (then every day the content of this file will be saved in a database and we will be able to analyse all the data).
So at the moment I'm stuck because I don't know how to create a key listener. Indeed, I found several topics about key listeners but all of them work with a user interface. What I need is a key listener that run in background and capture all the key strokes.
Do you have any idea about how to do that?