Add word input processing to MainCtrl