Discrete typing events

Got discrete typing events working