UIS keycode "LeftControl" Includes Command Key on Macbook

I dont know why but the crouch works with both left control and command button on macs, anyone know how to fix this?

game:GetService("UserInputService").InputBegan:Connect(function(input, isProcessed)
	if input.KeyCode == Enum.KeyCode.LeftControl and not isProcessed then
		startCrouch()
	end
end)

-- Connect the InputEnded event
game:GetService("UserInputService").InputEnded:Connect(function(input, isProcessed)
	if input.KeyCode == Enum.KeyCode.LeftControl  and not isProcessed then
		stopCrouch()
	end
end)
2 Likes

roblox using mac’s command key as Enum.KeyCode.LeftControl especiallly atm, see here: Changing the Mac Studio Command Keycode: Control vs Meta

4 Likes

So how can i get it to be left control only

3 Likes

i guess you cannot do anything about command key as it was mapped for LeftControl sadly :frowning_face:

3 Likes

One game does it though are u sure theres no way to check or work around it atleast?

3 Likes

as i think there is no way to detect if user pressed LeftControl but not an command key

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.