small js file to get keyboard input for some of the games I have been building