Type check keywordsMap on autocomplete

Fixes #226