Does anyone have a sample code for logging which keys are pressed on the computer?