How to toggle Target Display Mode on iMac using a non-mac wired keyboard? I have a new Late 2013 rMBP and a Mid 2011 iMac. I want to use the iMac in Target Display Mode so I can operate it as a second monitor for the laptop.

I have two questions:


I can easily turn on TDM on the iMac using ⌘ Cmd+F2, but cannot turn it off the same way. I have to unplug the Thunderbolt cable. Anyone know why?
I only have one Apple keyboard and mouse, and both are bluetooth wireless. Right now they are paired to the iMac. I will instead pair them to the laptop so I can use them on that, but I need a keyboard that can toggle TDM on the iMac. I tried using a Dell keyboard (which in my experience, Apple treats the ⊞ Win as the ⌘ Cmd key) and using ⊞ Win+F2, but it doesn't toggle it. Is there any hope to use a non-Apple keyboard to toggle TDM on the iMac?
To your 2nd question: I've not been able to toggle target display mode with a non-apple keyboard, however I was able to accomplish this using the app 1Keyboard. Basically I paired the computers via bluetooth, then used 1Keyboard to send command+F2. Sending command+F2 via Apple Remote Desktop did not work. I also tried sending command+F2 programmatically, but that didn't work either. Glad to have found a solution. Both computers were running Mavericks.