Support for HOME and END in menu. Formatting.