made first steps toward parsing keystrokes