Type check keywordsMap on autocomplete

Fixes #226
Merge pull request #227 from joshq00/master

Type check keywordsMap on autocomplete