This will take care of reading user input. TODO: Correct mouse buttons values, they do not match Xtest values.