One completely hilarious way to do that accidentally is to configure the escape key to some key that is not on the particular keyboard. Easy to do on laptops, that sometimes don't have left and right ctrl or alt.