text editor cleanups, text input cleanups, add keyfields