gui.c: Require all keys to be released after the B, A or X button or the Touch Screen is pressed.

This avoids bringing up, or exiting from, multiple menus if you happen to press something for longer than 1/5 second.

The modification does not apply to the directional pad in all menus, or the L and R buttons in file selectors.