I discovered the answer to my question. When I wiped my computer clean and reloaded Windows 11, I installed two keyboard systems, UK English and US English. The UK English keyboard has different functions attached to keys. I deleted the UK English keyboard, and this immediately fixed the problem.
My apologies for posting this question in the Teams Q&A.
Ann-Maree