Fix ternary stupidity on my part
Write tests for Keyword