key mapping for html5 canvas based games