In a gas chamber with say a movable piston:
F = P * A
Because, W = F * d
W = P * A * d
We know, A * d = V
Therefore, W = P * V
Case in point, we need volume to change for work to be done ( "delta d" is really meant when saying "d" in W = F * d). Don't worry about anything else really because if work isn't being done, than it must be heat change (q). In the end, it's either going to be change in heat or change in work because E = q - W.