initialize event for prevent default in hotkeys