Fixed handling of command sequences

Command sequences are Ctrl+C and Ctrl+Shift+X. They should be triggered
when pressing the 'C' or 'X' key and their handling should thus be done
before generic printable characters.  We use the information on the
currently pressed modifiers conatined in the Event structure.