on.keychord_press = function(chord, key) if chord == '1' then if Mode == 'teach' then Mode = 'learn' else Mode = 'teach' end return end if Mode == 'teach' then teach_keychord_press(chord, key) else learn_keychord_press(chord, key) end end