Trim - function

Please! add support for - Up Arrow + Auto-Enter and Down Arrow + Auto-Enter

321