Keynesianism was designed to make capitalism more stable. For much of the 20th century, it did exactly that.