Fix wrong check for a keyword.

Also test to spot it.