qt: Improve capslock detection on non-us keyboards (issue #1855)

On non-us keyboards you can obtain lower case characters even pressing
the SHIFT, this caused false positives.
Merge pull request #2424 from laanwj/2013_03_capslock

Improve capslock detection on non-us keyboards