A bit of a strange question, but is it possible to map a mouse button to act as a modifier key?

For example, could I have it so that when I hold down button 6 on my mouse, it acts as if I were holding down shift?