typing cn using textInput event