Start here: Using keys to move stimulus: quick and slow movement while keeping record of the pressed keys
This isn’t exactly the same as what you’re trying to do but it will give you somewhere to start.
Start here: Using keys to move stimulus: quick and slow movement while keeping record of the pressed keys
This isn’t exactly the same as what you’re trying to do but it will give you somewhere to start.