Use A to move left and D to move right. And dont touch the green area.
My sir helped me to this make this project so thank you.