The issue is that when I used the UserInputService KeyCode to get the input to keys the player is pressing, it returns the key as if the player is on QWERTY, Mouse.KeyDown has the same problem:
As you can see on the video, I’m on the Colemak keyboard layout, however it detects the key as if I’m on QWERTY. How do I make it so it’ll actually detect the keys that I’m pressing?
TextBox doesn’t have this problem:
Source code:
local uis = game:GetService("UserInputService");
local mouse = game:GetService("Players").LocalPlayer:GetMouse();
uis.InputBegan:Connect(
function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
local kc = input.KeyCode;
print(kc);
end;
end
);
mouse.KeyDown:Connect(
function(key)
print("mouse.KeyDown Key: " .. key);
end
);