couldn't you just call the same function the mouse is using?
on_space = on_mouse_left?