So keychord_pressed_on_editable_pane can currently never early exit because cursor_y is too high. So we can toss out some stuff that can't ever possibly trigger (and would help us here if it did)
Too many special cases, too much clamping of variables.
BE7D2TCTDPXQ6SLON3OL6G7PLZZMDRFHTJ4EL6MMI6R4RF53F2AAC
3EQZGRICHPHDMY2THLKGTS63G2L3CDED2HILRAY425Z55A26YQXAC
QBL4YDQ5QC4MZ7RFS4ZSEBPN5WATAJ7UQLUPTXDUMXAMGBGQDOOQC
B22JHH4W75CLJTHZWAHJZWYL3L7IN4MSIJSR5CCCCXYWYA27TRNQC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
UHLZULXWCQBLNM5HPCLFGYSIAMWXPXHK6PZCVQHAUQQUF55M6GOAC
J3ER7DFO2TXYUMJAXZUFEHQNLFDNIXSYDTE7HEFGQ2RYB3A6RFPAC
SYS77RM72TL7SLUQIJBN6D7DI5I6HSHCHXLPXREPADUNBBFM5TYAC
L32R5DALHPK75E2V7C5QGKR4AH6FVOLGTLMVKVQ36VA5ZKCID2JAC
UGEB2N5EVBSHMMJNDKYEHFYH2HHXEHJK3UWSXZB4BCVQR2N65OAAC
SKMUH5RWOBUHRAQ3TUEIH5EEHN3YOC35GJOJY7GPY7VY6QXLSODAC
JKAMPNVJHLSYZT5M7GKWGIHTJFIJU3VUJ2AWHLH3ORDUX3UTCF5QC
R2ZGBQPSLZMAUJLGUYYK77F3RSHOBFBK44IM4LZ4OPNBUOGO27DAC
W5D22DQ5HRM3SGVEDY3E57Q6UPXGYLPQUJEVYMP2SU5KKG4J5K2AC
if pane.editable and Surface.cursor_on_screen_check then
assert(pane.cursor_y)
Surface.cursor_on_screen_check = false
end