Change motor speed

Please, be aware that .pressed() function uses callbacks and is only good for advanced coders. It is very easy to mess up with callbacks.

https://api.vexcode.cloud/v5/html/classvex_1_1controller_1_1button.html

If you decide to use .pressed() instead of much simpler .pressing() function, then you can find very helpful this mini-tutorial:

Also, you may find this topic similar to what you are doing: How to change turn velocity by 5% with a button press - #6 by weilin