change hotkeys in input window. + some refactoring