Adds and removes keyCodes from keysDown array.