Probably worth doing some reading in the docs, which should help you write code that tells you when a key is pressed. Hiding game objects requires finding them, so the docs about GameObject class is probably a good place to start.
↧