it looks like the textinput is binded to an action while focusing on it that pops out a bubble. In the bubble I think you can make a gridlayout of buttons and bind a action that will change the text in the textinput.
Downloading the kivy framework you can check the examples of the widgets in the example/widgets/ directory. You just need to Combine several solutions.