tracks keystrokes and mouseclicks