Ctrl acts like number 2

I’ve experienced this for a while, and a friend confirmed it as well. When I press Ctrl key, it also fires the event for number 2.

The bug only seems to happen on mouse key events, which is deprecated. Either way it is technically a bug, and is up to the engineers to fix it or not. I will try to switch over to UserInputService, but a friend is telling me it has issues, so I’ll have to see.

Repro:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyUp:connect(function(key)
	print(key)
end)

Outputs:

2
2
2

UserInputService doesn’t fire 2 when you click Ctrl, so I assumed it was just mouse events.

Yeah, it’s always given strange things like that. I believe KeyUp and KeyDown are deprecated now anyway. UserInputService is so much cleaner. And you can just write your own API around it to simplify it, such as only capturing Key inputs or Mouse inputs.

This is resultant of KeyUp and KeyDown. You should be using UserInputService now.

F7, space bar, num pad enter print the same, alt and 4 print the same, it goes on and on and on. It’s something that’s been around for years now, and I doubt it’ll ever get fixed at this point.

it would be a nice fix to have, but workarounds are so old and widespread now they’d break more than they would fix by making the keys not overlap. UIS is way cooler anyways.

Why are you using KeyUp/Down instead of UserInputService?

I said I was switching.