handle keyboard shortcuts in contextual menu