on.text_input = function(t) if Mode == 'teach' then teach_text_input(t) else learn_text_input(t) end end