added hotkey to switch modes (issue #1)