CACA: use key thread (partially fix #3661)