change var mouse_mode to mouse_mode
with var you declare a variable mouse_mode