Invalid value for enum KeyCode

Reproduction Steps
My Analytics is catching numerous “Invalid value for enum KeyCode” errors from players from scripts like these:

UserInputService.InputBegan:Connect(function(input, _)
    local keyCode = input.KeyCode
end)

It has been reported before but like 5-6 years ago.

Expected Behavior
I expect all keycode values that can be inputted in platforms that support Roblox to be valid.

Actual Behavior
Some keycode errors. Not a critical bug but it does flood the analytics’ error logs.

Issue Area: Engine
Issue Type: Other
Impact: Low
Frequency: Often
Date First Experienced: 2020-03-01 00:03:00 (+01:00)

5 Likes

Wanted to bump this bug, still an issue as of 2024. I still catch these in my analytics as well.
Was caught in my InputEnded signal.

Seems a bit dangerous that some Enums just flat out error on some devices.