you fist need to know how the controller uses serial communication, maybe you need to send a read command to get data from the controller, in that way, yo need to write data to the serial port first, then read the serial port.
You could use a sequence to write first, and read later. But you need to put delays between the comands
Write --> Delay --> Read --> Delay
The second delay is because you will put the sequence inside a while loop.
To send data when you press a button you can use a case structure to send this data when you press the button, and the case is true. When the case is false it read fro the controller.