Can I assign rest button on the mouse to close shape

Thank very much for supporting Microstation beginner users :)

I have another question

In the same line string ,can i assign the rest button of the mouse button to close the shape

So

While i am drawing the shape,

If i pressed the rest button t,the shape should closed .