Add improved version of printKeyword