[MacOS] Added TextInput

Implements #1489 for MacOS

(Cleaned up of #1508)