Engine Bug? Game Processed on Enum.KeyCode.ButtonA always returns true

Title says all

game:GetService("UserInputService").InputBegan:Connect(function(Input,GameProccessed)
	print(Input.KeyCode, Enum.KeyCode.ButtonA, GameProccessed)
	if GameProccessed == true then
		return 
	end

	if Input.KeyCode == Enum.KeyCode.ButtonA then 
		print("Will never run")
	end
end)

Is this happening only to me? This bug occurs in studio and in-game and in multiple Roblox experiences.

It is gameprocessed because it is a movement key?

No that does not seem to be the case. Space returns false.

I am not entirely sure but isn’t the keycode for “A” just Enum.KeyCode.A?

ButtonA is for Xbox Controllers

1 Like

It’s undocumented behavior. This button corresponds to a UI key, much like the backslash or escape keys.

1 Like

When pressing ButtonA no UI opens, is this intentional behavior?

Yes, it’s just “ready” to interact with a UI. An example of this would be a purchase prompt.

The ButtonB key should do the same.

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