added prototype for arrow keys