Use chars to filter the up key behavior