(Help) Text 101 exit by using esc Standalone exe

Instead of the webplayer that was discussed, i was trying to create a standalone exe witch will exit by escape button

Example:

Nothing happens via escape key

What i Tried

if (Input.GetKeyDown(KeyCode.Escape)) {Application.Quit();}

if (Input.GetKey(“escape”))
Application.Quit();

My Newbie Codework

My whole newbie code for reference

Privacy & Terms