This is based off the arduino-screen-controller project.
Reference:
https://www.partsnotincluded.com/diy-stream-deck-mini-macro-keyboard/ https://www.thingiverse.com/thing:2822140 https://www.arduino.cc/en/Tutorial/BuiltInExamples/KeyboardLogout
This keyboard configuration will send keypresses to control audio and video for MacOS.
This was tested on MacOS Catalina (10.15.7).
This was tested on an Arduino Micro, but should work on any device that appears as a USB human interface devices (HID) such as the Leonardo.