to control blue bar use a key to move to the left and d key to move to the right. To control red ouse left arrow key to move left and right arrow key to move right.
Thanks to Daniel, Udemy for helping me create this project.