Close pyplot figure using the keyboard on Mac OS X,plt.show()