@mauvis99
- Give this in the Items property of the gallery
If(!IsBlank(TextInput1.Text), Filter(tblSkyscrapers, TextInput1.Text in 'Building Name'),tblSkyscrapers)

- In the OnSelect of the Gallery set a variable called varSelectedText to the gallery's selected item only if it is selected
If(ThisItem.IsSelected,Set(varSelectedText,ThisItem.'Building Name'),Set(varSelectedText,TextInput1.Text))
- In the Textbox's Default property pass that variable.

- After clicking, it works as below
Does not show other records of the gallery. They will show only after the user clears the text box. This is because as per your requirements the gallery items are dependent on the value of the text box and the value of the textbox is dependent on the gallery items.
You can add a button to Reset.

This might become a bit cumbersome to have a circular reference like thing to have dependency of two controls on one another, but if it is fine with you then great :).