from tkinter import Tk
from string import ascii_lowercase
import os
keys_dict = {
"a": "soud1.mp3",
"b": "soud2.mp3",
"c": "soud3.mp3",
"d": "soud4.mp3",
"e": "soud5.mp3"
}
def onpress(key):
print(key.char)
root = Tk()
for key in list(ascii_lowercase):
root.bind(key, onpress)
root.mainloop()