keyword lookup macro