this works for normal keys like [q,w,e,r,1,2,3] but i cant make it work with keys like with Shift,Enter,Backspace etc,any idea how to make it work?
from tkinter import *
root=Tk()
root.geometry("200x200")
def func1(event):
print(f'{event.char} key was pressed')
def func2(event):
print(f'{event.char} key was released')
root.bind("<KeyPress>",func1)
root.bind("<KeyPress>",func2)
root.mainloop()