translates a dictionary file to their corresponding numbers on a numberpad