#14 fixed but the order of key pressed produces another problem that is if you press A then D then player should move right, but if you press D then A then player won't move left until you release D