disable up and down keys using javascript