make check: loop until valid key found