KeywordValidator: change prototype

Otherwise we won't be able to mock it.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>