Mouse input and spawning