maze program (reading arrow keys)