only check for cursor key input when player is alive