For Ubuntu (and probably most of the other distros) theres a keyboard layout switcher. I'm sure there's something similar for windows and almost every browser. You can use those extensions to rapidly switch to qwerty layout when needed.
And if you think about it, mario is usually played on a device where you only have a limited number of buttons. There's no reason to remap the keys if there's only 6 buttons to use.