There is a bug in Ubuntu update which causes malfunctioning of the virtual keyboard switch on/off. We found Block Caribou extension which can fix the issue.
The steps are:
Find Caribou extension.
The extension will open. Just click on the top left button <.
Select the extension, Install it and confirm the installation.
Go to the Extension settings.
Switch Block Caribou on.