Fix keyboard behavior for format.