making a keybind system, need help
Hello, so I am making a key bind system, as you can see on the image when user clicks the "bind" button, the textbox text right to it changes to that bind. How do I make it so there can not be duplicates? also I need to count for reverse because A+B is same as B+A also I need to exclude the current textbox from checking. And also what event should I use? If I use keydown then it will check every time so when I type A and then want to type A+B it wont let me because its checked on keydown. Please can anyone help I am out of ideas