fix code completer keyup keydown