Eliminated extraneous iteration steps.  Fixed Shift key handling.  Selected count now internally tracked rather than calculated.