There are ascii codes that work for caps because they have special signs on them.
Ingame u dont see the signs that well because of the font that they use.
For example alt + 144 = É
Here's a

to save u the searching for a decent ascii table
[Thank me if this helped you]