Implemented or refined various layout utilities; pulled out some editable logic into CloseKeysAndText() function, so that it can be done via any of the keyboards (actual hardware, the widget, etc.)