Terminal not registering keystrokes #11812

Closed
opened 2026-01-31 02:58:07 +00:00 by claunia · 11 comments
Owner

Originally created by @dualhammers on GitHub (Dec 16, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.19042.685]
Windows Terminal version (if applicable): Version: 1.4.3243.0

Any other software?

Steps to reproduce

Load Terminal

Expected behavior

Terminal will load and I can enter commands using my keyboard

Actual behavior

Terminal is not registering keystrokes from keyboard or onscreen keyboard. This includes typing words into the terminal and the menu shortcuts.

Originally created by @dualhammers on GitHub (Dec 16, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ``` Windows build number: Microsoft Windows [Version 10.0.19042.685] Windows Terminal version (if applicable): Version: 1.4.3243.0 Any other software? ``` # Steps to reproduce Load Terminal # Expected behavior Terminal will load and I can enter commands using my keyboard # Actual behavior Terminal is not registering keystrokes from keyboard or onscreen keyboard. This includes typing words into the terminal and the menu shortcuts.
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 02:58:07 +00:00
Author
Owner

@skyline75489 commented on GitHub (Dec 16, 2020):

By any chance do you PowerToys installed and running?

@skyline75489 commented on GitHub (Dec 16, 2020): By any chance do you PowerToys installed and running?
Author
Owner

@zadjii-msft commented on GitHub (Dec 16, 2020):

Can you confirm that the "Touch Keyboard and Handwriting Panel" service is running? You can check that with the command

sc query TabletInputService

Which should get you something like:
image

If you're seeing that the service is running, could you check if ctfmon.exe is also running? Apparently ctfmon.exe is the real important process, which the service is just used to resurrect.

> tasklist /v /fi "imagename eq ctfmon.exe" /fo list

Image Name:   ctfmon.exe
PID:          10828
Session Name: Console
Session#:     1
Mem Usage:    26,536 K
Status:       Running
User Name:    REDMOND\migrie
CPU Time:     0:01:05
Window Title: N/A

image

It needs to be running with a stable PID. So run that command a few times and make sure that the PID isn't changing.

Also, can you check InputServiceEnabled in the registry? You can do that with:

reg query hklm\software\microsoft\input /v InputServiceEnabled

Which should give you something like:

HKEY_LOCAL_MACHINE\software\microsoft\input
InputServiceEnabled REG_DWORD 0x1

(See #8045, #4448)

@zadjii-msft commented on GitHub (Dec 16, 2020): Can you confirm that the "Touch Keyboard and Handwriting Panel" service is running? You can check that with the command ```sh sc query TabletInputService ``` Which should get you something like: ![image](https://user-images.githubusercontent.com/18356694/97710878-55aad480-1a8a-11eb-9e93-bddadf6c4872.png) If you're seeing that the service is running, could you check if `ctfmon.exe` is also running? Apparently `ctfmon.exe` is the _real_ important process, which the service is just used to resurrect. ``` > tasklist /v /fi "imagename eq ctfmon.exe" /fo list Image Name: ctfmon.exe PID: 10828 Session Name: Console Session#: 1 Mem Usage: 26,536 K Status: Running User Name: REDMOND\migrie CPU Time: 0:01:05 Window Title: N/A ``` ![image](https://user-images.githubusercontent.com/18356694/98955703-d2937080-24c4-11eb-8daf-ae7b2efad705.png) It needs to be running **with a stable PID**. So run that command a few times and make sure that the PID isn't changing. Also, can you check `InputServiceEnabled` in the registry? You can do that with: ``` reg query hklm\software\microsoft\input /v InputServiceEnabled ``` Which should give you something like: ``` HKEY_LOCAL_MACHINE\software\microsoft\input InputServiceEnabled REG_DWORD 0x1 ``` (See #8045, #4448)
Author
Owner

@dualhammers commented on GitHub (Dec 17, 2020):

CTFMON is not running - how do I set it to run? I see lots of solutions
online for older versions of windows.

@dualhammers commented on GitHub (Dec 17, 2020): CTFMON is not running - how do I set it to run? I see lots of solutions online for older versions of windows.
Author
Owner

@zadjii-msft commented on GitHub (Dec 17, 2020):

I think enabling the TabletInputService (and rebooting) should be enough to resurrect ctfmon.exe. @ebadger as an FYI

@zadjii-msft commented on GitHub (Dec 17, 2020): I think enabling the `TabletInputService` (and rebooting) should be enough to resurrect `ctfmon.exe`. @ebadger as an FYI
Author
Owner

@dualhammers commented on GitHub (Dec 17, 2020):

TabletInputService is not present in my Service Configuration

[image: image.png]

@dualhammers commented on GitHub (Dec 17, 2020): TabletInputService is not present in my Service Configuration [image: image.png]
Author
Owner

@zadjii-msft commented on GitHub (Dec 17, 2020):

(Heads up, sending that image via email might not have worked...)

@zadjii-msft commented on GitHub (Dec 17, 2020): (Heads up, sending that image via email might not have worked...)
Author
Owner

@dualhammers commented on GitHub (Dec 18, 2020):

Ah, OK. It was just a screenshot of my System Configuration (msconfig)
screen. TabletInputService is not listed at all.

@dualhammers commented on GitHub (Dec 18, 2020): Ah, OK. It was just a screenshot of my System Configuration (msconfig) screen. TabletInputService is not listed at all.
Author
Owner

@oising commented on GitHub (Dec 18, 2020):

Hey @dualhammers -- Microsoft won't be able to (officially) offer you much advice beyond "reset windows" (for understandable liability reasons) but since I am a random dude on the internet, I can suggest something. If you save this file as "fix-tablet-input-service.reg" and double click it to merge, it should restore the service to working order. You may need to reboot afterwards.

As with all registry tweaks, be careful 👍

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService]
"DisplayName"="@%SystemRoot%\\system32\\TabSvc.dll,-100"
"ErrorControl"=dword:00000001
"Group"="PlugPlay"
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
  6b,00,20,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,79,00,73,00,74,00,65,00,6d,\
  00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,52,00,65,00,73,00,74,00,72,00,\
  69,00,63,00,74,00,65,00,64,00,00,00
"Start"=dword:00000003
"Type"=dword:00000020
"Description"="@%SystemRoot%\\system32\\TabSvc.dll,-101"
"DependOnService"=hex(7):52,00,70,00,63,00,53,00,73,00,00,00,00,00
"ObjectName"="LocalSystem"
"ServiceSidType"=dword:00000001
"RequiredPrivileges"=hex(7):53,00,65,00,54,00,63,00,62,00,50,00,72,00,69,00,76,\
  00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,49,00,6d,00,70,00,65,00,\
  72,00,73,00,6f,00,6e,00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,\
  00,65,00,67,00,65,00,00,00,53,00,65,00,49,00,6e,00,63,00,72,00,65,00,61,00,\
  73,00,65,00,51,00,75,00,6f,00,74,00,61,00,50,00,72,00,69,00,76,00,69,00,6c,\
  00,65,00,67,00,65,00,00,00,53,00,65,00,41,00,73,00,73,00,69,00,67,00,6e,00,\
  50,00,72,00,69,00,6d,00,61,00,72,00,79,00,54,00,6f,00,6b,00,65,00,6e,00,50,\
  00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,\
  72,00,65,00,61,00,74,00,65,00,47,00,6c,00,6f,00,62,00,61,00,6c,00,50,00,72,\
  00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,00,00
"FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\
  00,01,00,00,00,60,ea,00,00,01,00,00,00,c0,d4,01,00,00,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService\Parameters]
"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
  00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
  54,00,61,00,62,00,53,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00
"ServiceDllUnloadOnStop"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService\Security]
"Security"=hex:01,00,04,80,84,00,00,00,90,00,00,00,00,00,00,00,14,00,00,00,02,\
  00,70,00,05,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,\
  00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,\
  00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,04,00,00,00,00,00,14,00,\
  8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,00,14,00,10,00,00,00,01,\
  01,00,00,00,00,00,01,00,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,\
  00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService\TriggerInfo]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService\TriggerInfo\0]
"Type"=dword:00000001
"Action"=dword:00000001
"GUID"=hex:b2,55,1e,4d,6f,f1,cf,11,88,cb,00,11,11,00,00,30
"Data0"=hex:48,00,49,00,44,00,5f,00,44,00,45,00,56,00,49,00,43,00,45,00,5f,00,\
  55,00,50,00,3a,00,30,00,30,00,30,00,44,00,5f,00,55,00,3a,00,30,00,30,00,30,\
  00,31,00,00,00
"DataType0"=dword:00000002
"Data1"=hex:48,00,49,00,44,00,5f,00,44,00,45,00,56,00,49,00,43,00,45,00,5f,00,\
  55,00,50,00,3a,00,30,00,30,00,30,00,44,00,5f,00,55,00,3a,00,30,00,30,00,30,\
  00,32,00,00,00
"DataType1"=dword:00000002
"Data2"=hex:48,00,49,00,44,00,5f,00,44,00,45,00,56,00,49,00,43,00,45,00,5f,00,\
  55,00,50,00,3a,00,30,00,30,00,30,00,44,00,5f,00,55,00,3a,00,30,00,30,00,30,\
  00,33,00,00,00
"DataType2"=dword:00000002
"Data3"=hex:48,00,49,00,44,00,5f,00,44,00,45,00,56,00,49,00,43,00,45,00,5f,00,\
  55,00,50,00,3a,00,30,00,30,00,30,00,44,00,5f,00,55,00,3a,00,30,00,30,00,30,\
  00,34,00,00,00
"DataType3"=dword:00000002
@oising commented on GitHub (Dec 18, 2020): Hey @dualhammers -- Microsoft won't be able to (officially) offer you much advice beyond "reset windows" (for understandable liability reasons) but since I am a random dude on the internet, I can suggest something. If you save this file as "fix-tablet-input-service.reg" and double click it to merge, it should restore the service to working order. You may need to reboot afterwards. As with all registry tweaks, be careful 👍 ```regedit Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService] "DisplayName"="@%SystemRoot%\\system32\\TabSvc.dll,-100" "ErrorControl"=dword:00000001 "Group"="PlugPlay" "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\ 00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\ 6b,00,20,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,79,00,73,00,74,00,65,00,6d,\ 00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,52,00,65,00,73,00,74,00,72,00,\ 69,00,63,00,74,00,65,00,64,00,00,00 "Start"=dword:00000003 "Type"=dword:00000020 "Description"="@%SystemRoot%\\system32\\TabSvc.dll,-101" "DependOnService"=hex(7):52,00,70,00,63,00,53,00,73,00,00,00,00,00 "ObjectName"="LocalSystem" "ServiceSidType"=dword:00000001 "RequiredPrivileges"=hex(7):53,00,65,00,54,00,63,00,62,00,50,00,72,00,69,00,76,\ 00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,49,00,6d,00,70,00,65,00,\ 72,00,73,00,6f,00,6e,00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,\ 00,65,00,67,00,65,00,00,00,53,00,65,00,49,00,6e,00,63,00,72,00,65,00,61,00,\ 73,00,65,00,51,00,75,00,6f,00,74,00,61,00,50,00,72,00,69,00,76,00,69,00,6c,\ 00,65,00,67,00,65,00,00,00,53,00,65,00,41,00,73,00,73,00,69,00,67,00,6e,00,\ 50,00,72,00,69,00,6d,00,61,00,72,00,79,00,54,00,6f,00,6b,00,65,00,6e,00,50,\ 00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,\ 72,00,65,00,61,00,74,00,65,00,47,00,6c,00,6f,00,62,00,61,00,6c,00,50,00,72,\ 00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,00,00 "FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\ 00,01,00,00,00,60,ea,00,00,01,00,00,00,c0,d4,01,00,00,00,00,00,00,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService\Parameters] "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\ 00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 54,00,61,00,62,00,53,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00 "ServiceDllUnloadOnStop"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService\Security] "Security"=hex:01,00,04,80,84,00,00,00,90,00,00,00,00,00,00,00,14,00,00,00,02,\ 00,70,00,05,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,\ 00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,\ 00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,04,00,00,00,00,00,14,00,\ 8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,00,14,00,10,00,00,00,01,\ 01,00,00,00,00,00,01,00,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,\ 00,00,00,00,00,05,12,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService\TriggerInfo] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TabletInputService\TriggerInfo\0] "Type"=dword:00000001 "Action"=dword:00000001 "GUID"=hex:b2,55,1e,4d,6f,f1,cf,11,88,cb,00,11,11,00,00,30 "Data0"=hex:48,00,49,00,44,00,5f,00,44,00,45,00,56,00,49,00,43,00,45,00,5f,00,\ 55,00,50,00,3a,00,30,00,30,00,30,00,44,00,5f,00,55,00,3a,00,30,00,30,00,30,\ 00,31,00,00,00 "DataType0"=dword:00000002 "Data1"=hex:48,00,49,00,44,00,5f,00,44,00,45,00,56,00,49,00,43,00,45,00,5f,00,\ 55,00,50,00,3a,00,30,00,30,00,30,00,44,00,5f,00,55,00,3a,00,30,00,30,00,30,\ 00,32,00,00,00 "DataType1"=dword:00000002 "Data2"=hex:48,00,49,00,44,00,5f,00,44,00,45,00,56,00,49,00,43,00,45,00,5f,00,\ 55,00,50,00,3a,00,30,00,30,00,30,00,44,00,5f,00,55,00,3a,00,30,00,30,00,30,\ 00,33,00,00,00 "DataType2"=dword:00000002 "Data3"=hex:48,00,49,00,44,00,5f,00,44,00,45,00,56,00,49,00,43,00,45,00,5f,00,\ 55,00,50,00,3a,00,30,00,30,00,30,00,44,00,5f,00,55,00,3a,00,30,00,30,00,30,\ 00,34,00,00,00 "DataType3"=dword:00000002 ```
Author
Owner

@dualhammers commented on GitHub (Dec 18, 2020):

I will give it a try. But I am confused as to WHY i do not have the service

@dualhammers commented on GitHub (Dec 18, 2020): I will give it a try. But I am confused as to WHY i do not have the service
Author
Owner

@dualhammers commented on GitHub (Dec 25, 2020):

That fixed it. Thank you :)

@dualhammers commented on GitHub (Dec 25, 2020): That fixed it. Thank you :)
Author
Owner

@DHowett commented on GitHub (Dec 25, 2020):

Thanks for confirming!

@DHowett commented on GitHub (Dec 25, 2020): Thanks for confirming!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11812