Prevent shortcut keys from disrupting editing