Address comment: change {un}registerGlobalHotKey to sync method.