I want to assign my script to special key on my keyboard. xmodmap recognize this key as XF86AudioMute, but I want to execute my script when it pressed. How to do it?

My window manager is Window Maker, but I am looking for a solution independent of wm.