complex key check simplified