kill key thread if no key has been pressed and receiving data has finished