Swapping lasers (help me plz)

i want to press 2 and it will change the laser to a bouncing laser and if i press 1 back to a normal laser.

Help plz

Use a toggle switch

here is an example: https://flowlab.io/game/view/1443123

use the 1 and 2 keys to swap

and space to shoot r to reset

Do the same thing with lasers and put don’t expire objects on the emit block off.