close RES console on ESC keypress