There are API provided by Google and Microsoft that takes as input the image of a person and output a probability distribution of the person's mood. I'm wondering if there an API that can take as input the keystroke pattern and predict the person's mood? What should I do if I want to make an application that does that? Where can I get data sets? How can I get the keystroke pattern of a computer?