Photographs of code are NOT A THING.
If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly
How to report your problem productively in the Unity3D forums:
You may edit your post above.
Beware that Input.GetKeyDown() is ONLY valid within the Update() function, as documented.