You will need to capture your key event a onkeypress so you can access the character code. Even if you wanted to detect a capslock / shift + keystroke, it would still register as two separate keystrokes making it difficult to determine uppper vrs lower case.
Some important KeyCode notes:
"Be careful when accessing the keyCode property during an onkeydown or onkeyup event, as it is set whenever any key is pressed, including non character keys like "Shift". This means if you try to press "Shift+a" to try and get the keyCode for "A", you will always end up getting two keyCodes instead, one for "Shift" and one for "A" in that order. What you won't get regardless is the keyCode for "a", as keyCode always returns the unicode value of the uppercase version of a character. To derive the keyCode for "a" (lowercase), you must probe the keyCode returned during the onkeypress event in IE, and since Firefox doesn't set keyCode during onkeypress, switch to e.charCode or e.which instead for that browser."
Some important CharCode notes:
"Returns the character code of the key pressed during an onkeypress event. and is only set for keys in which a character is associated with it (ie: "a", "b", or "z"). Keys with no character association like "Shift" or "Ctrl" do not qualify. Other points:
- Different values are returned for upper and lowercase characters (ie: "a" versus "A")."
Here is a great source from which the two quotes came from which can most likely aid you with any further confusion.
Keycods and charcodes