Why are Backspace, Enter, Navigation keys not working while editing any file in Visual Studio?

Apurva Kamshetty 25 Reputation points
2023-02-23T04:57:49.38+00:00

I am using Visual Studio Extensions, while creating a new solution through extension for the first time, we are only able to type alphabets. Backspace, Enter, Navigation keys are not working while editing any file.
But when we force close the solution, and reopen the editing is working as expected. I've tried various solutions from various forums, but nothing works. Please help me find a solution.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,193 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,012 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
227 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,831 Reputation points Microsoft Vendor
    2023-02-23T09:10:31.8466667+00:00

    Hi @Apurva Kamshetty, 

    Welcome to Microsoft Q&A! 

    Which version of Visual Studio are you using? Does it occur in other projects? 

    Please reset keyboard mapping scheme by going to Tools > Options > Environment > Keyboard > click on ‘Reset’ > OK.

    Meanwhile, you can try to repair your Visual Studio.

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    3 people found this answer helpful.

  2. Fred Klein 10 Reputation points
    2023-12-06T13:19:11.1733333+00:00

    I am experiencing the same issue (VS 17.8.2). When it happens, any other app is still responding correctly to those keystrokes. Quitting VS and starting over solves the issue temporarily.

    2 people found this answer helpful.
    0 comments No comments

  3. Lisarte Barbosa 0 Reputation points
    2023-12-07T19:04:29.98+00:00

    I have VS 17.8.3, and it also happens to me. Te restart fix presented previously only endures for one use of space or one enter. Visual Studio is completely unusable now. The reset Keyboard fix provided by @Anna Xiu-MSFT didn't do anything at all.


  4. Johan Heyvaert 0 Reputation points
    2023-12-20T08:13:25.4266667+00:00

    Same problem here with VS 2022 v17.8.2..

    When closing VS I get this confirmation dialog (cf. attached screenshot. So some operation is blocking user input. But I don't see any open dialogs or task.
    The only thing I did in this VS session is connect and authenticate to GIT (Azure Devops), which happens in a dialog. Oh and now I remember that this dialog was showing javascript error messages (at least 3 times). Sorry, didn't take a screenshot of those. Maybe it's related to this keyboard issue.


  5. Sean Houghton 0 Reputation points
    2024-05-28T15:13:11.97+00:00

    I had this problem (all keys except backspace and enter work). I noticed it was only happening with .rst files. I disabled the restructuredText plugin and restarted vscode and all the keys worked again. When I re-enable the plugin the keys stopped working, even without restarting vscode.

    I see this exception in the "window" error log, and nothing in the "restructuredText" error log.

    024-05-28 08:10:36.439 [error] [ExtensionListenerError] Extension 'Arjun.swagger-viewer' FAILED to handle event: TypeError: Cannot read properties of undefined (reading 'document'): Error: [ExtensionListenerError] Extension 'Arjun.swagger-viewer' FAILED to handle event: TypeError: Cannot read properties of undefined (reading 'document')
        at a.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:163:20680)
        at o.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:660)
        at o.z (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:730)
        at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:946)
        at P.$acceptModelChanged (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:153:75620)
        at c.S (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:5505)
        at c.Q (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:5271)
        at c.M (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:4361)
        at c.L (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:3440)
        at a.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:2227)
        at o.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:660)
        at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:877)
        at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:107:14175)
        at a.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:176:8023)
        at o.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:660)
        at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:877)
        at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:107:14175)
        at MessagePortMain.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:176:6303)
        at MessagePortMain.emit (node:events:517:28)
        at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2285)
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.