You have to use the "on remote control signal received" event block. That's triggered every time you press a key on the remote control. Then, you have to test which key you pressed. Use the "if" block in which you put a conditional test " … = … ".

In this test, we want to compare the "received remote control command value" with a value. In the example below, I look for the "0" and "1" value (which are associated to the 0 and 1 key).

So with the example below:

- if I press 1, Thymio turns green
- if I press 0, Thymio turns red.

The "received remote control address value" is another thing. When you press a key on a your remote control, you get two messages:
- The address: depends on the remote control, it can be used with multi channel remote control
- The command: which key you pressed.