Using mouse works fine - cancel will go back a menu and not clear data.
However, if you use arrow keys and enter during this menu, selecting cancel, the game will still close and all your data will be deleted.
Related: If you use keyboard to select confirm and hit enter, it appears the data is deleted twice - two windows of the game open up afterwards, instead of the only one if you use mouse or if you use enter to select cancel.