made input-events.js agnostic of game controls per se