fix keylistener tests