Capture command + key combinations in key handling.

Closes #379.