Hmm. How about having those actions context-sensitive? i.e. Left click both attacks and digs (or something along those lines?)? Or binding it to say, middle mouse button?
That could work. Melee and Dig could both be left click, depending on if you click a zombie or the sand.