import tkinter as tk def keypressed(k): print(k.keysym, k.keycode) def mouse(m): print(m) def button(b): print(b) root=tk.Tk() root.geometry("500x500+400+100") root.bind('', keypressed) root.bind('', mouse) root.bind('