Wireless keyboard conflict with trackpad
I use a wireless trackpad, mouse and keyboard combination for my iMac. I keep having an issue with the keyboard not responding when I go to wake up the Mac. It acts like a key is stuck keeps filling in the password box with digits. I spoke with Apple support and they suggested I exchange the keyboard under warranty. I did that but the issue continued. Finally I turned off the trackpad and just used the magic mouse and the issue seems to have gone away. It seems like the Mac has an issue with having 3 wireless devices. I like having the trackpad for my left hand so any ideas or solutions?
iMac (21.5-inch, Late 2013), iOS 9.3.1