Efficiently meaning not having to write code for every single character.
For example;
function findEnum(char)
--// Code
end
findEnum("a") --// Returns: Enum.KeyCode.A
I can't just use Enum.KeyCode[string.upper(char)], because I also want it to support symbols.
EDIT: I have discovered the function string.byte (converts a string to its ASCII value), and that KeyCodes can be indexed using their byte value - although this does not necessarily work across all platforms. I have not tested yet.
Thank you!
~TDP

2 comments
"I also want it to support symbols" I have no idea what you're talking about. You need to be very specific about what your expected input and expected output are. Give examples!
The main problem is that '/' does not work, because Enum.KeyCode['/'] does not exist.