word counter and events get sent from keyboard to screen to buffer