Problems with keyboard while playing the game itself

I have been able to change the Retropads controls with success with the exception of the keyarrows. They do change in RetroArch itself but when I load and starts to play the actual game the arrows do not work. The game I am playing is Legend of Zelda Ocarina of Time and my computer is a Lenovo laptop.

Anybody has an idea what could be wrong?