How to toggle Target Display Mode on iMac using a non-mac wired keyboard?
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.