Move cursor movement logic to Screen class