Rework logic to remove confusion; add comment about why modifier keys are ignored.