Commands are stopped when profiles are switched, yes. That is intentional.
What happens when switching profiles isn't quite identical to stopping all commands manually using the action or other methods, as keyboard keys aren't released when doing the former.