Hey there, thanks for the quick reply!
I tried the keycode site, but it doesn't seem to recognize special characters if they're part of a two-button combination (e.g. "A" = shift + 'a', ":" = shift + ".", etc). Pressing capslock doesn't help, either; I only get the keycode for e.g. "a" or ".", never for "A" or ":".) Maybe that's (part of) the problem, not (just) the language-specific keyboard layout? (Though see my remarks at the very bottom - maybe checking via keycode instead of sth else is the problem.)
---
Anyway, here are some key codes:
188 = comma
189 = dash
190 = period = '.'; holding shift plus period does nothing, it's still just period
When I press the button for "'" / "#", I get key code 191 (forward slash) instead.
The button for '*' / '+' / '~' yields key code 187 (equal sign) instead.
The button for "ä" yields key code 222 (single quote / "ä") instead.
The button für "ü" yields key code 186 (semi-colon) instead.
---
I couldn't find *any* button which yields "?", which leads me to believe this line of inquiry maybe isn't fruitful? Rather than try to map whatever I press to whatever key code javascript turns it into, maybe there's instead a way to have Javascript correctly recognize my inputs as coming from a German language schema / keyboard?
---
I quickly googled the topic, and I think that what you actually want might be the keypress method, instead of keycode? See the answers here: https://stackoverflow.com/questions/7831494/how-to-get-the-correct-language-and-... and here: https://stackoverflow.com/questions/11030532/keypress-and-keyup-why-is-the-keyco...