State transition of Japnese text input