They’re generally key-press events that you can capture with hotplug scripts. If the GPIOs haven’t been captured by the driver, you can read the lines with the deprecated sysfs approach, or with the current user-space tools from gpiod-tools

There may also be ubus calls for this.