how to activate dialogs with a button, through states

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:

http://plbm.com/?p=220

You may edit your post above.

Beware that Input.GetKeyDown() is ONLY valid within the Update() function, as documented.