Browser compatibility: keyup instead of keypress and use keyCode. Previous way did not work in Chrom*.
Swap primary and secondary x axis by pressing 's'.