Playing with AdaFruit MacroPad Circuit Python code.
AdaFruit MacroPad repo where much of this code is borrowed from.
Media (consumer) control codes enum
Keyboard class supports send(*keycodes) that automatically presses and released Press(*keycodes) and release(*keycodes) also supported See: https://github.com/adafruit/Adafruit_CircuitPython_HID/blob/main/adafruit_hid/keyboard.py