modified to type one letter at a time