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

Apurva Kamshetty 30 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,449 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,419 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.
275 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 30,966 Reputation points Microsoft External Staff
    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. Christopher Brown 6 Reputation points
    2025-03-28T19:46:58.07+00:00

    I've been using Visual Studio for a very long time, and this problem has popped up multiple times for me with various versions. It's very aggravating, and seems specific to VS (other running apps work fine). It's happened with different machines, different Windows versions, different keyboards. It's very specific to VS. I'm currently running 2022 Pro V.17.14.0 Preview 2.0. And yep, it just happened.

    In this case, today, it was right after I clicked off an install reminder for NVIDIA Nsight. Right after I clicked the "Yes, remind me again" option in the message box, my backspace, enter, and navigation arrows went dead. But my experience is that various things can cause this.

    How I fixed it... I clicked the Find edit box in the Find and Replace window. Typed a couple of characters in the Find edit box, backspaced to delete them (hey, backspace works), clicked back on my Edit window and... backspace, enter, etc. are all working again!

    I obviously can't speak for everyone, but the problem seems specific to the Edit window in VS. Click on another window, like Find and Replace, and it seems to fix the problem. A similar thing often happens for me with the mouse pointer in the Edit window, getting stuck as a pointer instead of reverting back to an I-beam. Slide it over to another window, like Find and Replace, and it starts working properly again.

    So before you restart VS, or reinstall, just try typing something quick in Find and Replace, and see if that fixes the issue. Hope this helps!

    1 person found this answer helpful.

  4. 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.


  5. 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.


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.