Help for a single pin ps/2 keyboard

Sorry for my poor english, I started a keyboard project but i dnt know how to solve the issue. I really hope someone can help me because, if i can menage electronics, im not good at all in software coding. Well, i am using a stand alone at328pu board and a raw of 102 buttons connected to a single pin (the other pins are busy) each one with a different resistor connected (every button will send to the pin a different analog value). Now, we know that every button of the keyboard have a "meaning" (10 on 1025 = Q, 20 on 1025 = W, ...) and i want to translate that numeric value on ps/2 signals to send to PC. Is it possible? Thanks in advance.