Fix a bug in Shift-key state reading.