make up/down arrows work like matlab for filtering history