added hotkey "R" to open/close the research window