added arrow keys to main script