I am currently writing a 2048 game which detects user\'s keyboard input and then change state of the corresponding direction; but I failed to change the state. I use this as