Only process keyboard events in touchscreen GUI when it's visible.

So that when Back button is pressed and a modal menu is shown, you won't
get it closed and then game menu opened.