Update midi input checkbutton when pressing esc