I'm making a game controlled by arrow keys. You can see it here.
A user-experience problem I'm noticing is that if the user clicks on a "Set Speed" button to change the speed of the snake, then when they try to move the snake up or down with their arrow keys, since they're still clicked in the "Set Speed" radio button box, all it does is toggle through the radio buttons. If possible, I'd like that once they click a "Set Speed" button they are clicked out of the box so their arrow keys control the snake's movement. My event listener for the "Set Speed" box is
$('#speed-form input[type="radio"]').click(function ( )
{
SG.setSpeed($(this).val());
});
and I'm wondering if there is a line or 2 I can add to click the user out of the #speed-form
.