Illegal key check