Artificial buttons Ardunio

I'm actually really not sure about this, but how can I create a no moving parts button. As in when I send a certain byte using the Serial.read() it will connect two channels for about a second then close the connection.

Search google for "transistor as a switch."

Look for an optically isolated FET.