Add a keyword? function to detect keywords.

Thanks to algernon for the function body; huge improvement.
merge #547 - keyword?