Use platform-specific mod keys, refs #676