You can do follow the example
external signal is key4
In "BeeApp.c" file you find "BeeAppHandleKeys void function (key_event_t events)"
You modify
gKBD_EventSW4_c case:
..........
...........
break;
into
gKBD_EventSW4_c case:
SetOneLed (LED4, gLedToggle_c);
break;
When the program starts, you press key 4, then Led 4 will toggle.
The Functions of LEDs you can find and modify in folder
PLM->Source->Led->Led.c
Hope this example will help you.