arrow keys to move and q&e for different portals b&space to cancel them
if you are stuck between portals in an infinite loop than delete the portals with space or b