StripModifiersFromKey: fix non-ASCII keys not ending up as invalid Qt::Key values. Fixes #450.