Changed to arrow keys with keydown event

Earlier, keyPress event was being used. It does not support the arrow
keys, so switched to keydown event and changed the controls to arrow
keys