wait for multiple keys