Keydown refactoring & remove global keydown hook from remote mangement