Update keyboard_input_manager.js

fix a bug in direction