Handle modifier keys.