The idea could work really well but in this case you can easily cheese the game because using the arrow keys also moves the player.