uncommented code to console the keycode