Seems to work this way.. Thanks.
Let's just hope Apple fixes this soon.
Update: the issue seems to appear only when I use the shortcut key ctrl + left arrow OR ctrl + right arrow.
If i use gestures, like swap the keyboard keeps working without any issues
com.apple.dock.extra: Could not connect the action buttonPressed: to target of class NSApplication