Optimized keyboard windowing and editing