I have been struggling to switch the cursor mode from insert to normal all the time. it was all start happen when I was installed VIM extension in VS code. But I was completely unaware of why this happening suddenly to the code editor. After searching the google I found that VIM extension overriding the cursor properties to VS code.
I have uninstalled the VIM extension and the problem get rid away.