disable keypress events when panelsnap is disabled