Arrow Keys Still Not Functioning after disabling certain keys

Hello everyone,

It’s been a while since I posted here. Apart from that, I am having an issue with the arrow keys. I got a piece of code adapted from a post on the forum to disable certain keybinds, right? I chose what keys I wanted to disable, though my arrow keys stopped functioning.

local cas = game:GetService("ContextActionService")

cas:BindActionAtPriority("DisableKeys", function()
	return Enum.ContextActionResult.Sink
end, false, Enum.ContextActionPriority.High.Value, Enum.KeyCode.Up, Enum.KeyCode.Down, Enum.KeyCode.W, Enum.KeyCode.S)

This is the code in question. As shown in the snippet, Up, Down, W and S are disabled, which is fine and dandy. Though the Left and Right are not working, even though I didn’t disable them in the script. A and D work completely fine, but the others, don’t.

Any reason why, please? Thanks! :slight_smile:

Aki