introduced thread for key tracker