The Streamdeck worked amazingly well back when it was possible to interface with the API in CM4:
Unfortunately, CM5 doesn’t offer that sort of remote access.
It should be able to do this using one of the communication/control programs which is more programmable — bCNC seems a likely candidate, or CNCjs as @Julien noted.