External onclick handler for adding keywords.