Test the api SendInput