Prevent default in toggle keydown