When I start up, my iMac searches for a wireless keyboard. After several tries, I can finally start up but this is unacceptable. I have an iMac running under the latest version of Yosemite.
Have you tried unchecking the first option in the advanced Bluetooth setup box? That would seem to be the problem.
View attachment 21858