Use termcap info to decide Up/Down key.