script not working?

 From:  armin
3993.1 
I added following script to the ini file:

F8=script:moi.drawingAids.objectSnapAxis = !moi.drawingAids.objectSnapAxis;

unfortunately it doesn't work. Is there maybe a typing error?

This was just copied and pasted, and this method worked with other scripts.

Thanks in advance.

Armin