How to turn on visibility when you press a key?

No it just automatically inputs the target to default scene root 1 code