Bind Key action: Return
from Tkinter import * root = Tk() def greet(*ignore): print 'Hello World' root.bind('<Return>', greet) root.mainloop()