implemented hotkey setting in code