How to detect what key player presses when typing in Text box?

Im creating a custom keybinds system and Im wondering how to detect the exact key that the player presses while typing into the text box. The script I have currently reads the exact letters typed into the text box, so if the player doesn’t type in uppercase or doesn’t say the exact word they need to for lua to understand the code doesn’t work. Im just wondering because I cant find anything on the forum about this so if someone can tell me how I can get start it would be a great help!

you can use :upper() on the textbox text then connect that with a keycode enum.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.