Make sendKey asynchronous.