Create a keyboard shortcut to toggle an individual setting?

I want to create a keyboard press to toggle the “play next video automatically” checkbox in the video–>playback setting. I haven’t found a way to do this as yet and am not even sure if this sort of customization is possible since this setting isn’t a built-in function.

Anyone have any ideas/recommendations?