I want to execute a loop/action until a key is pressed and onpress I want to stop that action and call the function getKey. Can anybody suggest how to do this?<
getKey
Use http://www.asquare.net/javascript/tests/KeyCode.html to find keycodes