Remove trailing whitespace
Enable select-all with cmd-a on Mac OS
Tighten the definition of a control key to exclude combinations with other modifiers like alt.
Move control key discriminator static method into a function.