Add flags to keywords