No tricks I'm sure. Commencement speeches, like most, are scripted. There was already a point prepared about pushing towards less populism (my take, I haven't seen the script of course), the interesting adlib here is having to get to the main pushes from the script to an audience not listening.