changed all references to currentLetter to activeSelection to be more general