Better handling of ESC key input if mouse support is not enabled
If mouseEnabled is default, now uses console.inkey()/getkey() directly rather than mouse_getkey(). This way, if mouse support is not enabled, inputting the ESC key can be handled better.