Similar to how a popup list works -- create a set of labels above or below the input field, but instead of opening it on click, do it by tying into the input validation. You will be getting notifications of every single character press, allowing you to update your popup.