UserInputService.KeyboardEnabled always returns true

Reproduction Steps

System Information

CPU: Intel(R) Core™ i7-9700K CPU @ 3.60GHz
GPU: NVIDIA GeForce GTX 1050 Ti
Memory: 16.0GB

Expected Behavior
UserInputService.KeyboardEnabled should be returning true if there’s a valid keyboard input found on the user’s device (excluding on-screen), else false.

Actual Behavior
UserInputService.KeyboardEnabled appears to be returning true consistently, both in-game and in-studio, even when my keyboard is unplugged. I have closed and opened both of them. I’m listening for input changes (UserInputService:GetPropertyChangedSignal("KeyboardEnabled")), and this does not ever fire either.

My use-case

I have two buttons that display hotkeys on them. If there’s a controller found or they’re on Xbox (ten foot interface), then I disable them and show the Xbox button image. Else, if there’s a keyboard found, then it’ll show the keyboard hotkey. If neither are found, say the user is on mobile without a connected external keyboard, then it’ll leave it blank.

Issue Area: Engine
Issue Type: Other
Impact: High
Frequency: Constantly
Date First Experienced: 2022-01-14 00:01:00 (-06:00)

2 Likes