added tolerance setting on keyboard shortcuts