Keyboard and Mouse Problem Fixed after Starting PowerShell s Adminstrator

William 76 Reputation points
2026-01-10T12:15:51.93+00:00

Problem started when the computer was started up in the morning. The mouse seemed to work but didn’t have scroll wheel function and the keyboard didn’t operate correctly.

Two error messages windows were opened;

You’re holding down the CTRL key. Do you want to start Excel in safe mode?

You’re holding down the CTRL key. Do you want to start Outlook in safe mode?

Pressing of the “v” on the keyboard caused return event.

Tried on-screen keyboard and it had the same problem.

Fix was to open PowerShell as administrator but the problem returns on restart or plugging the USB keyboard into a different port. Can always fix by open PowerShell as administrator.

Ran DISM.exe /Online /Cleanup-image /Restorehealth and sfc /scannow in PowerShell as administrator but they didn't fix the problem

Anyway to fix this without reinstalling windows 11 pro and all you apps?

Windows for home | Windows 11 | Desktop, Start, and personalization | Other

3 answers

Sort by: Most helpful
  1. William 76 Reputation points
    2026-01-10T14:46:53.97+00:00

    Solved the problem by replacing the Microsoft Ergonomic Keyboard with a different keyboard.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. William 76 Reputation points
    2026-01-10T13:43:26.12+00:00

    Can no enter "msdt.exe -id KeyboardDiagnostic " because keyboard not functioning.

    Uninstall/reinstall did not fix the problem.

    on-screen keyboard has the same problem.

    So far the only way to fix the problem is to run PowerShell as administrator, sometime it takes two tries to fix.

    Was this answer helpful?

    0 comments No comments

  3. DaveM121 915.1K Reputation points Independent Advisor
    2026-01-10T12:49:31.1433333+00:00

    1

    Open Command Prompt, then paste in this command and press Enter:

    msdt.exe -id KeyboardDiagnostic

    Run that Keyboard Troubleshooter to see if that can solve the problem.

    2

    If that does not resolve this for you

    Open Device Manager

    Expand the Keyboards section

    Right click your keyboard and choose 'Uninstall'

    Then restart your PC

    3

    If the problem is still not resolved:

    Bring up the on-screen keyboard, is it indicated any keys are being pressed on the keyboard even though you are not pressing the keys?

    Was this answer helpful?

    0 comments No comments

Your answer

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