Implemented hotkeys and cursor moving