Put on your thinking cap and talk it out. Put in words what you want, then turn it in to code. Something like:
- If the key 'A' was pressed, and the shift key AND caps lock were OFF, then I really have an 'a'.
- If the 'A' key was pressed, and the shift key AND caps lock were ON, then I really have an ___ (remember: shift + caps cancel out for letters).
- If the 'A' key was pressed, and the shift key was ON, and caps lock was OFF, then I really have an ___.
- If the 'A' key was pressed, and the shift key was ON, and caps lock was OFF, then I really have an ___.
Can you fill in those blanks? That's the verbose way to do it. You can combine some of those if statements to simplify it a bit, but I'll leave that up to you.