For my purposes, this type of function would allow me to set macros for players to type their names into our map-based name input HUD:

I know that the key+Shift check will already work for typing capital letters, but not having Capslock function for this as well would be weird.
I'm not sure what other uses a simple check like this might have (or how simple it would really be for you to implement), but there it is. Thanks!