Molecular Understanding of the Catalytic Consequence of Ketene Intermediates under Confinement