Fixed unicode input on Polish keyboards.

Also fixed a deprecation warning