This varies from device to device. Their primary function is to switch between multiple computers. Normally this is done by pressing the switch button on the hardware itself.
Some devices also support hot hey switching. This allows you to alter between the connected PCs by pressing a combination of buttons. Other variants come with remote control that allows you to change inputs remotely.
Amazon and the Amazon logo are trademarks of Amazon.com, Inc, or its affiliates.