yes you can check the output with a debug node although to be honest I just played with a blueprint that works awesome for this remote if you are using zha. ZHA - IKEA five button remote for lights
Not sure how you are sorting out the button id i use the “payload.event.device_ieee” in a switch node then the change node after that. Looking at it I think I shorted you a node I actually use 2 change nodes. I’ll post the whole flow for you to have a look at. This is probably not the most efficient way of doing this but I am new to node-red and always happy when I get something to work.
[{"id":"d340a9ea.3b59f8","type":"server-events","z":"f0cb5c7e.9caa5","name":"test","server":"","event_type":"zha_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"x":130,"y":380,"wires":[["3d20fb45.e87794"]]},{"id":"3d20fb45.e87794","type":"switch","z":"f0cb5c7e.9caa5","name":"test dimmer","property":"payload.event.device_ieee","propertyType":"msg","rules":[{"t":"eq","v":"68:0a:e2:ff:fe:7d:27:4b","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":270,"y":440,"wires":[["630ff087.007ee","7284548f.43bacc"]]},{"id":"630ff087.007ee","type":"change","z":"f0cb5c7e.9caa5","name":"","rules":[{"t":"move","p":"payload.event.command","pt":"msg","to":"payload","tot":"msg"},{"t":"move","p":"payload.event.args[0]","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":520,"wires":[["5298f49c.5af2fc"]]},{"id":"8b70bff.29e104","type":"api-call-service","z":"f0cb5c7e.9caa5","name":"living room light dim","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_lights","data":"{\"brightness_pct\":\"25\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":940,"y":580,"wires":[["75d146a9.3ca8a8"]]},{"id":"495af730.57b148","type":"api-call-service","z":"f0cb5c7e.9caa5","name":"living room light toggle","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.living_room_lights","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":900,"y":460,"wires":[[]]},{"id":"5298f49c.5af2fc","type":"switch","z":"f0cb5c7e.9caa5","name":"living room dimmer","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"toggle","vt":"str"},{"t":"eq","v":"step_with_on_off","vt":"str"},{"t":"eq","v":"move_with_on_off","vt":"str"},{"t":"eq","v":"step","vt":"str"},{"t":"eq","v":"move","vt":"str"},{"t":"eq","v":"256","vt":"str"},{"t":"eq","v":"257","vt":"str"}],"checkall":"true","repair":false,"outputs":7,"x":650,"y":540,"wires":[["495af730.57b148"],["bb55b15.13f085"],[],["8b70bff.29e104"],[],["7a99b032.4405d","a0a6423b.770a8"],["c753882.8779678"]]},{"id":"bb55b15.13f085","type":"api-call-service","z":"f0cb5c7e.9caa5","name":"living room light full","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_lights","data":"{\"brightness_pct\":\"100\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":910,"y":520,"wires":[[]]},{"id":"c753882.8779678","type":"api-call-service","z":"f0cb5c7e.9caa5","name":"hall light off","server":"","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.hallway_light","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":950,"y":700,"wires":[[]]},{"id":"7284548f.43bacc","type":"change","z":"f0cb5c7e.9caa5","name":"","rules":[{"t":"move","p":"payload.event.args[0]","pt":"msg","to":"payload.event.command","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":210,"y":600,"wires":[["630ff087.007ee"]]},{"id":"a0a6423b.770a8","type":"api-call-service","z":"f0cb5c7e.9caa5","name":"hall light on","server":"","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.hallway_light","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":950,"y":640,"wires":[[]]}]
it looks like there is also a long press argument for those 2 keys 3328 and 3329 so they could be assigned also.
Craig