How to use KeyboardKeyCode (ProximityPrompt)?

Hello Roblox,

So i have a code that searches every ProximityPrompt, this goes perfect but i want to make a code which searches if KeyboardKeyCode == F.
This is my current code:

for _, object in ipairs(workspace:GetDescendants()) do
	if object:IsA("ProximityPrompt") then
		
		if object.Parent:FindFirstChild("Humanoid") then
			if object.KeyboardKeyCode == F then
				print("works x")
			end
		end
	end
end

~Maini

Use an Enum value for this, for example, Enum.KeyCode.F.

And how can i use this in my code?

You would refer to F using its KeyCode value. This is how you would use it in your code:

if object.KeyboardKeyCode == Enum.KeyCode.F then
				print("works x")
			end

You can view the full list of keycodes here.