Following the switch to libinput in Xorg server 1.20, examples 5.7 and 5.9 need to use "libinput" instead of "keyboard" as the driver name.
(Note: this may be applicable to 12.x and 13 only, in which case the examples would need to be split, not just changed.)
Just omitting "Driver" entirely works as well, at least with the newer (udev) version, didn't test the older one.
A commit references this bug:
Date: Tue Aug 11 18:31:09 UTC 2020
New revision: 54421
Track switch to libinput in xorg-server 1.20.8
Remove the Driver line from examples 5.7 and 5.9, thus making them
valid for both variant configurations of X (with or without libinput).
For 12.1 and xorg-server 1.20.8, add "Set kern.evdev.rcpt_mask=6 in
/etc/sysctl.conf if not using moused" important paragraph to section
"220.127.116.11. Mice and Pointing Devices".
Submitted by: pauamma
Reviewed by: zeising@
Approved by: bcr@
Differential Revision: https://reviews.freebsd.org/D25641