My code is below. It is meant to pop a tkinter window when the user clicks CTRL + X and close that window when CTRL + A is pressed. The problem is that when the window is cl