Here's a little script to do this. There are two limitations:
1. As far as I can tell, we can't tell which workspace is active, so I just have to start at the beginning. This means the first time you run the script in each session you may have to toggle twice to get the workspace you want.
2. Can you add a keyboard shortcut to a script? You may need a third party app to help? Sorry I'm not sure about that.
- Mark

/**
* Toggle between workspaces.
* @7111211 m1b
* @version 2023-02-15
* @discussion https://community.adobe.com/t5/indesign-discussions/script-to-cycle-between-2-user-workspaces/m-p/13580436
*/
// Put your workspace names here:
var workspaceNames = ['Dan1', 'Dan2'],
key = 'workspaceForDan',
currentValue = app.extractLabel(key),
index = indexOf(currentValue, workspaceNames),
newIndex = index == -1 ? 0 : (index + 1) % workspaceNames.length,
newValue = workspaceNames[newIndex];
app.insertLabel(key, newValue);
app.applyWorkspace(newValue);
function indexOf(obj, arr) {
for (var i = 0; i < arr.length; i++) if (arr[i] === obj) return i;
return -1;
};