I don't know but I assume your table Keyword is in fact designed so that there is only one keyword "grapefruit" in the table.
So, first make the Keyword FIELD unique (if there are non-unique values congrats you have some clean-up to do 🙂
Next, use the following code when you "insert":
REPLACE INTO Keyword SET Keyword='".addslashes($Keyword)."'
This piggybacks on the UNIQUE key you set on the Keyword field. It will, if the record is present, DELETE the existing record and immediately INSERT the new one - on a small table like this, effectively no change will occur.
If there is no record like this considering all unique keys, then it will be inserted.
Interesting note: you can tell if it was there after the operation by checking mysql_affected_rows() - count will be 2 (one deleted, one inserted) if it was.
This works fine on small atomic tables like this, but if there is other associated data you want to preserve in other fields, it's not good cause you'll lose that data.
Cheers,
Samuel