Velocity is computed from how far the ball moved over the last few frames while held, so releasing it throws it at that exact speed, and it reflects off any wall it hits.