Added EndOfLine() function and necessary logic to move cursor to end of current line when PgDn is pressed