I think "input_key" should be renamed as something like "selection_id" For all references after this one (just to separate the concept of a selected structure from the UI event that is connected to it)