I have a late 2009 27" iMac that supports video input via the mini display port. I just got a Windows 8 computer that I have hooked up via HDMI to another monitor. I bought a Displayport to Minidisplayport cable and was able to hook up my Windows 8 computer to my iMac and use it as a secondary display. This works great! As soon as I plug in the cable, my iMac goes into Target Display mode and I see the Windows 8 desktop on my iMac and my Windows display. However, I do not have an Apple keyboard hooked up to my iMac (I'm using a Logitech Dinovo Mac keyboard) so I can't seem to get Command + F2 to work to switch in and out of Target Display mode. After doing some searching, I did not find a solution, so I'm asking here... 1) Is there a way to get Command + F2 to work on my Logitech keyboard to enable/disable Target Display mode? I tried adding the Function key: Command + Function + F2 but that did not work. As I understand it, the Apple keyboards send a special command when doing Command + F2 for Target Display mode. My question is this: is there a way to duplicate this command with another keystroke combo on my Logitech keyboard, or a way to set up a macro or script? 2) Alternatively, is there a way for me to disable the Displayport output on my Windows computer without unhooking the cable? I tried setting Windows 8 to PC-Only in the display settings, and this successfully disables multi-monitor support. But the screen just goes black on my iMac - it does not switch back to OSX. So I'm looking for a way to go in and out of Target Display mode without having to either remove the cable from the back of my iMac or having to get an Apple keyboard. Any suggestions/solutions? Thanks!