Enum.Keycode not registering

I’m making a custom chat script, that uses / to type (like normal). The problem is that game isn’t registering that / has been pressed. Here is my code:
image

I’ve looked through a few devforum posts, but I couldn’t find anyone having similar issues.
If anybody knows why this happens or how I can fix this, please help me out.
(also, this is running on a localscript in playerGui)

Try putting this in the if statement:

if input.KeyCode == Enum.KeyCode.Slash then

I realized upon reading my code how much of an idiot I am, but thank you for this anyways