You can get community support for Pybricks at https://github.com/pybricks/support. ir.buttons(1) returns a list of pressed buttons, so In this particular program if ir.buttons(1) == Button.BEACON: needs to be changed to if Button.BEACON in ir.buttons(1): This will test if item is in list.

Only top voted, non community-wiki answers of a minimum length are eligible