void (KeyEvent e) { final int code = e.getKeyCode(); if (code == KeyEvent.VK_CONTROL || code == KeyEvent.VK_META || code == KeyEvent.VK_ALT || code == KeyEvent.VK_SHIFT) { myContentComponent.removeKeyListener(this); final CompletionPhase phase = CompletionServiceImpl.getCompletionPhase(); if (phase instanceof CompletionPhase.BgCalculation) { ((CompletionPhase.BgCalculation)phase).modifiersChanged = true; } else if (phase instanceof CompletionPhase.InsertedSingleItem) { CompletionServiceImpl.setCompletionPhase(CompletionPhase.NoCompletion); } } }