You could use another software to do the trick.
On Windows I'd use Autohotkey with a script something like this:
Code:
$Space::
While GetKeyState("Space","p"){
Send {Space}
Sleep 10
}
return
I think IronAHK can be run on Linux and Mac and it can use the same scripts as Autohotkey.