For things like this, you want the Javascript Key Event Test Script. It's a simple web page that simply shows you which values are in which event field. That way, you can see the input for your code.
My guess is that you won't find anything exceptional about å when you type it into the test page.
The next step is to write unit tests that create synthetic events and feed these through your code to make sure it behaves correctly.
I know it's very tempting to do this without unit tests. But over time, the code becomes too complex to understand and really odd errors (like the one you describe) creep in.