How to annotate a specific data point on plotly interactively?

I am having some graphs like:


and the annotation can be shown when the mouse fleets the data points.

How do I annotate the data points with inputs from textbox other than mouse hover?

For example, the users input the desired data points though textbox to be annonated.
Thank you.