keyboard input and merging cells