userInputService.InputBegan:Connect(function(input, GPE)
print(1)
if not GPE then
print(2)
if input then
print(3)
if var.editing then
print(4)
if input.KeyCode == Enum.KeyCode.Escape then
print(5)
cancel()
end
end
end
end
end)
Doesn’t print anything when pressing Escape. It prints all the other numbers, but not when I press Escape