This is just a quick post, but many of y'all may have run into the same issue that I have; that Apple devices default to sending media actions (volume up/down, key backlight, screen brightness, etc.) instead of the normal function key (F1, F2, etc.).
TLDR:
$ echo options hid_apple fnmode=0 | sudo tee -a /etc/modprobe.d/hid_apple.conf
This sets the system to send the scan code for the function key by default, and to send the media action if you press the Fn key, along with the function key.