       return
     }
 
-    self.log.debug("\(aSelector) not implemented, " +
-                   "forwarding input to neovim")
+    self.log.debug("\(aSelector) not implemented, forwarding input to neovim")
     self.keyDownDone = false
   }
 
-  override public func performKeyEquivalent(with event: NSEvent) -> Bool {
-    if .keyDown != event.type { return false }
+  override func performKeyEquivalent(with event: NSEvent) -> Bool {
+    if event.type != .keyDown { return false }
     let flags = event.modifierFlags.intersection(.deviceIndependentFlagsMask)
 
     // <C-Tab> & <C-S-Tab> do not trigger keyDown events.
     // Catch the key event here and pass it to keyDown.
     // By rogual in NeoVim dot app:
     // https://github.com/rogual/neovim-dot-app/pull/248/files
-    if flags.contains(.control) && 48 == event.keyCode {
+    if flags.contains(.control), event.keyCode == 48 {
       self.keyDown(with: event)
       return true
     }
 
     // Emoji menu: Cmd-Ctrl-Space
-    if flags.contains([.command, .control]) && 49 == event.keyCode {
-      return false
-    }
+    if flags.contains([.command, .control]), event.keyCode == 49 { return false }
 
     // Space key (especially in combination with modifiers) can result in
     // unexpected chars (e.g. ctrl-space = \0), so catch the event early and
     // pass it to keyDown.
-    if 49 == event.keyCode {
+    if event.keyCode == 49 {
       self.keyDown(with: event)
       return true
     }
 
-    guard let chars = event.characters else {
-      return false;
-    }
+    guard let chars = event.characters else { return false }
 
     // Control code \0 causes rpc parsing problems.
     // So we escape as early as possible

    return result
  }

  func vimModifierFlags(_ modifierFlags: NSEvent.ModifierFlags) -> String? {
    var result = ""

    let control = modifierFlags.contains(.control)


    let result: NSRange
    result = NSRange(
      location: self.ugrid.flatCharIndex(forPosition: self.ugrid.cursorPosition),
      length: 0
    )

