RS232 which pin i can connect together to receive a input signal in my Java application listening on ttyUSB0 or ttyS0?
You could link the TX and RX pins through the button, then have your software "poll" the button state by sending a character out of the serial port and seeing if it gets that character returned to it through the serial port.