Bluetooth failing and having issues after your Mac comes out of sleep? This is a known issue reported by OS X Yosemite users. Here’s a solution that will likely resolve it.
Here’s how you can copy and paste long complex passwords into security dialogs (aka. SecurityAgent) on OS X, particularly when creating and opening encrypted disks and disk images.