I want the ESC key to exit the game if they press it. How would I go about doing that?
<img src="http://imageshack.com/a/img801/1170/w1xo.jpg" border="0" />
what do you mean by exit the game?
Develop games in your browser. Powerful, performant & highly capable.
Make ESC close the game.
In what way do you mean close?
Using the "browser" object you can close the browser window, if that's what you mean.