Enabling Volume Buttons in PICO-8

This has been posted before but only as comments so I thought I open up a thread for it so it’s easier to find. Here is how to make the volume buttons work when running PICO-8

The script was initially written by follower46
It is available here:

However, the original script is a bit old and some paths need to be changed in order for it to work with the current default PICO-8 integration.

If you have any issues, post them here.