Still happening in AC22 6001 MacOS but locking and unlocking the Mac "fixes it". Guessing that sometimes waking up after going to sleep and "locking" the user steals the spacebar.
Eduardo Rolón AIA NCARB
AC29 US/INT -> AC08Mac Studio M4 Max 64GB ram, OS X 10.XX latest