This change prevent a `QCharRef` deprecation warning if any modifier key is pressed while the spashscreen is still displayed, for Qt >= 5.14.
As a side effect, Ctrl+Q and Shift+Q will also close the splashscreen now.
This is a backport of core [[https://github.com/bitcoin/bitcoin/pull/18101 | PR18101]]