That's not a good solution, because if you press+release W key repeatedly roughly once per second, the speed will still increase.
If you need to increase the speed by 10 for every second the key is held continuously, you can do this:
Global variable startTime=0
On W pressed: Set startTime to time
On W released: Set startTime to 0
On every tick
startTime>0 : Set speed to initialSpeed + int(startTime)*10
Or use the Timer behavior. On W pressed start a repeating timer for 1 second. On released - stop the timer. In "On timer" event increase the speed.