Instead of try/catch, better to ignore non-arrow keys