Added check for RegisterHotKey.