keyCode tests fix