client: when escape is pressed and console is down it will be cleared if text is entered into the field and closed if there is no text entered (double tap to close if there is text extered)