Also update the Lua example. The "pause" event was declared deprecated, so the example should use the newer API.