The current rating widget uses a list with no accessible text or keyboard interaction.
Both the W3C example and many other accessible rating widgets use radio buttons as a base. The existing hidden input could be swapped out for a set of radio buttons corresponding to the number of stars.