So I am trying to find out how to get a keycode like this Enum.KeyCode.Enter Here is my script:
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input == Enum.KeyCode.KeypadEnter then
print ' reeeeee '
end
end
And I would like to change Enum.KeypadEnter to just the Enter key. How would I go about doing that?

6 comments
Enum.KeyCode.Return I believe
Yeah, Enum.KeyCode.Return is enter.
yes all of you
i believe thats correct, you have print"reeee" instead of print("reeeee")
Lua isn't Python 2; only Python 2 has print as a command and not a function. However, Python 3 uses print as a function, like Lua.
Excuse me. I believe there is a print command on roblox correct me if I am wrong but print() ????