HELP ME! Exit button problem

Hi all, I am trying to make an exit button for an .exe, and I cannot work out what actionscript to attribute to a button, can someone help? I have tried multiple scripts, and this is my current one:

on.press= function () {
fscommand(“quit”);}

I can’t see what is wrong with this, can someone please help!?