Add a keyword? function to detect keywords.

Thanks to algernon for the function body; huge improvement.