Some Samsung TVs come with Bluetooth capabilities, which means they can wirelessly connect to speakers and other devices.
If their TV has Connection Guide as an option, navigate to Sources > Connection Guide. Select the device type you would like to pair and follow the on-screen instructions to connect it wirelessly. Keyboards and gamepads will fall under Accessories.