fix cursor height and selection height
fix clear text on first key down