Use Deep Click to control brush size in Photoshop

Use Deep Click to control brush size in Photoshop

Can I use the Z with Photoshop? When using a pen tablet I am able to control the effect of a number of tools by the pressure on the pen e.g. the brush tool produces a wider thicker stroke the harder the the pen is pressed on the tablet.
Can the Z be programed to emulate this "pen sensitivity"?

Thanks.   Cal