Keyboard not working correctly in Visual Studio 2022

Chris Davies 135 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,448 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Kevin Tharp 35 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.

    7 people found this answer helpful.

  2. Jens 10 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.

    2 people found this answer helpful.

  3. Anna Xiu-MSFT 30,916 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.

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.