By default, the keyboard uses the function keys F1-15 for media purposes.
To recover the function keys use:
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
To swap the Alt and Command (Windows-symbol) keys use:
echo 1 | sudo tee /sys/module/hid_apple/parameters/swap_opt_cmd
To make the changes permanent, use:
echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
echo options hid_apple swap_opt_cmd=1 | sudo tee -a /etc/modprobe.d/hid_apple.conf