Fix cursor being lost on chart when using keyboard