Overwriting O and I keybinds

I’m recreating Wordle in a Roblox game for fun, and I’m using a custom typing system rather than TextBoxes because they don’t provide enough customizability.

This is the current way I process keystrokes:

for Letter in pairs (ValidLetters) do
	ContextActionService:BindAction(Letter, function(_, UserInputState)
		if UserInputState ~= Enum.UserInputState.Begin then return end
		InputLetter(Letter)
	end, false, Enum.KeyCode[Letter])
end

The issue is that the O and I keys are already binded to zooming the camera in and out, and that ContextActionService doesn’t process them, even when I use :BindActionAtPriority().

I managed to get around this with the WASD keys using

game:GetService("ControllerService"):ClearAllChildren()

Does anyone know how I’d do this with the zoom in and zoom out keys? Thanks in advance.

1 Like

Could you set the camera type to scriptable?

I found a few things with the Search tool up top. Here’s one with a solution:
<Enum.KeyCode.O not recognized by ContextActionService

1 Like