close cocoa keyboard on to/from text input blur

Fixes CG-CamSys/Backlog#168