started capturing keypress events