I had not seen AppInventor... that looks pretty cool.
From what I can tell from the screens.
When you press button 6 or button 7 it will write to some service/characteristic UUID
In order to do this you will need to create a custom service and characteristic in the P4BLE that matches the UUIDs in the app inventor.
You can watch videos on doing that in the http://www.cypress.com/video-tutorials
This example project does exactly what you are looking to do: http://www.cypress.com/blog/problem-solver/project-034-rgb-led-control-over-bluetooth-low-energy
Try dissecting it for information on the specific details on implementation that you need.
Referring to your PSoC 4 main() code, you will need to have a callback function to handle BLE events, CyBleProcessEvents() called consistently in main loop, and a flag that gets set/cleared to indicated the LED setting in the callback handler based on the events. The BLE events are very involved, but if you right-click the BLE component and select "Open Datasheet" or "Open API Documentation", then you will be able to look at what functions do/can be called.