Iphone can be used as keyboard for your computer. Connect your computer to Wi-Fi and install Touch
Mouse Server on your computer and then connect your iphone to same Wi-Fi network and instanll Touch Mouse App. The software will run in the background on your PC then start the app on your Iphone and you should see your TV in the list and choose to connect. ( source CNET)