Yeah unfortunately I used if and else if instead of only ifs. So you can move only one direction at a time. Thanks for the feedback.