More reliable keyword check