code cleaning- working on movement lock

so no key-press events are read while an animation is happening