I changed this to `checkTextarea = [noop, (checkTextarea = text ? unselectedSelection : noop)()][0];` and everything seems to be good except the test unrecognized keys that move cursor and clear selection without keypress fails.