stop keyboard event when using o shortcut