The keyboard needs to have WiFi or Bluetooth connection and your Samsung SmartTV should be compatible with keyboards that are using these technologies. If you have the option to Search & Sync using additional peripheral devices, then yes, you can use the keyboard you attach to the iPad to operate on the Smart TV.