read sent keys in a loop on char at a time