How to clear Bluetooth Buffer

When I send a short command like an "w" it turn right for a short time.

Using what to send the data?

Using what code on the Arduino?

The communication between the PC and the bluetooth device and between the bluetooth device and the Arduino is serial. If you send a letter over and over as long as a key is held down, you will be sending lots of letters. You will need to receive and read all of them before you can quit acting on them.

Far better to send one code when a key is pressed and another when a key is released. Like, send 'a' when the a key is pressed, and send 'A' when it is released.

Then, the Arduino can start something happening when it gets a lower case letter, and stop it when it gets an upper case letter.