Use A, D to move left and right. You can also use the left and right arrow keys. If it doesn't work the first time you press the flag you have to just press it again.