There are four forms displayed on a single page, and I want each form to be submitted based on the arrow key that is pressed.
<form name='go_north' action='' method='post'>
<input type='hidden' name='direction' value='north' />
</form>
<form name='go_east' action='' method='post'>
<input type='hidden' name='direction' value='east' />
</form>
etc...
I understand how to achieve this with text inputs that have focus, but I am struggling to implement it with hidden inputs. Additionally, it should only work in Chrome. Any suggestions or advice on how to tackle this issue would be highly appreciated.