cursor keys now working with some ugly ugly code.