Keydown refactoring & remove global keydown hook from remote key handling