How to toggle file extension via button?

Ctrl-E will toggle the file extension on/off. How do I do this via a button?

The general technique is to go to Settings / Customize / Keys, locate the key in question, double-click it it find out what command it runs, and then add the same command to a button.

Well that was easy... Thanks Jon!