I know I can do

if key.KeyCode == Enum.KeyCode.A then
	--code A
end
if key.KeyCode == Enum.KeyCode.B then
	--code B
end
if key.KeyCode == Enum.KeyCode.C then
	--code C
end

--etc

but I don't want to check for every separate key. I want to return whatever key the player presses. This might be a stupid question, I just couldn't find the answer anywhere. Help?

2 comments

0

InputObject.KeyCode.Name

0

Thank you! I'm stupid. xP