Hi.
You should use multiple fsms for this, and also use get/set fsm actions.
There are even more useful fsm actions on the
Ecosystemlike 'fsm bool test' for example
Have the get key in a separate fsm and store the bool variable.
the you can use the 'fsm bool test' ('Check' Every Frame) to see if true or false on another fsm where you handle the speed.
you could also use 'get key down' (state 1) and 'get key up' (state 2)
and in both states use a send event, to send a event to another fsm.
This video can help you understand how to use global events :