Problem activating TargetDisplay Mode for Mac Mini (2014) connected to iMac 21'' (mid-2010)
Unfortunately, the Mid-2010 iMac 21" doesn't support Target Display mode. Only the 27" iMac from that generation does, which is why you are getting no response when you press CMD+F2. The Apple website offers more information here: