save file on cmd+s and close file edit on Esc