I am reading matsumura, in that if $k \xrightarrow{f} A \xrightarrow{g}B$ are $k$ algebra morphisms. Then $$\Omega_{A/k}\otimes_A B \xrightarrow{\alpha} \Omega_{B/k} \xrightarrow{\beta} \Omega_{B/A} \to 0$$ is an exact sequence of $B$ modules. Where $\alpha(d_{A/k} a \otimes b) = b d_{B/k} g(a)$
How is this map well defined and a $B$ module morphism?