fix the ontology tree to behave when a enter button is pressed

reviewer: tiff go (post commit)

issue: GCP-8935