Improve move logic and install cursor input