added new function/key map for trailing spaces