based on Python and Tkinter
left click: left click highlighted text (entity) to put it into entity1 or entity2 text field; left click selected text to put it into Relation Keyword text field;
right click: right click highlighted text (entity) to delete it; right click a relation record to delete it;