Keyboard not working correctly in Visual Studio 2022

Chris Davies 120 Reputation points
2023-09-24T15:22:24.3733333+00:00

Running VS2022 17.7.4. Frequently only alpha numeric keys work. All function keys, backspace etc not working. Keyboard works fine in all other programs. Reset Key mapping has no effect.

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
{count} votes

7 answers

Sort by: Most helpful
  1. Kevin Tharp 30 Reputation points
    2024-02-15T16:23:35.63+00:00

    I kept encountering a version of this issue and finally found that doing a Ctrl-Tab to change editor windows resolved it for my situation. Haven't had a time that this hasn't worked. This was with VS 17.8.4.

    6 people found this answer helpful.

  2. Anna Xiu-MSFT 29,831 Reputation points Microsoft Vendor
    2023-09-25T07:39:42.4366667+00:00

    Hi @Chris Davies

    Welcome to Microsoft Q&A! 

    Please try the following workarounds:

    1. Reset the VS settings by going to Tools > Import and Export settings > Reset all settings.
    2. Repair VS using Visual Studio Installer > More > Repair.
    3. Re-launch the VS2022 and check that it works properly. 

    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.

    1 person found this answer helpful.

  3. Donny Alumbaugh 5 Reputation points
    2024-04-24T13:01:50.01+00:00

    This problem started for me after updating to 17.9.6. I've seen the issue with the ctrl and backspace keys.

    1 person found this answer helpful.
    0 comments No comments

  4. Jens 5 Reputation points
    2024-06-17T12:33:28.91+00:00

    I have the same problem. If it happens, the edit input field has lost the focus for keystrokes. Letters and numbers are inserted into the text, but the control keys do not work. With the arrow keys, I changed the selected control or icon in the small bar with the horizontal scrollbar under the edit field. My only solution is to start a modal dialog in VS, i.e. the options dialog and click cancel. Then the focus is back to the input field.

    1 person found this answer helpful.
    0 comments No comments

  5. Ruth Amui 0 Reputation points
    2024-01-04T07:03:18.4666667+00:00

    I've also been struggling for months with this issue. I have tried all the solutions I can find online including the ones listed here without success. I have even uninstalled and reinstalled Visual Studio. Only my F5 key works.


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.